Windows Form应用程序在某些定义的特定时间使用“发送邮件" [英] Windows Form Application Using Send Mail at certain defined Specific Time

查看:70
本文介绍了Windows Form应用程序在某些定义的特定时间使用“发送邮件"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
这是我的问题,我想每天在特定时间向某些人发送电子邮件.
我知道我可以使用Mail Asp和Task Scheduler来实现这一点.但是Complexity在这里.它应该以Excel格式从数据库中获取最新数据,然后每天在特定时间将这些Excel发送到一些固定的id.如何做我实现了Plz帮助.

Hi Everyone,
This is My Question i want to send email to some people at certain time on daily basis .
I knw i can Achive this By Using Mail Asp and Task Scheduler .But the Complexcity is here .It Should Get the Latest Data From Database in the Excel format and Then Send those Excel to some fixed ids at certain time on daily basis .How do i achive this Plz Help .

推荐答案

您应该看看计时器c \ lass
http://msdn.microsoft.com/en-us/library/system.timers. timer.aspx [ ^ ]

我假设您的程序一直在运行.此MSDN文章中提供了不同计时器的列表:
http://msdn.microsoft.com/en-us/magazine/cc164015.aspx [ ^ ]
You should take a look at the timer c\lass
http://msdn.microsoft.com/en-us/library/system.timers.timer.aspx[^]

I am assuming that your program runs all the time. A list of different Timers are given in this MSDN article:
http://msdn.microsoft.com/en-us/magazine/cc164015.aspx[^]


这篇关于Windows Form应用程序在某些定义的特定时间使用“发送邮件"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆