从应用程序发送邮件

问题描述:

大家好,

在我的应用程序中,有一个用于提示日期和时间设置的面板.
在其中可以创建一个以上提醒的工具.

一旦移动时间"等于提醒时间",邮件就会被发送给用户.

因此,如何使用计时器或其他方法执行此操作.



谢谢

Hi Everybody,

In my Application have a panel for reminder with Date and Time Settings.
In which have the facility to create more then one Reminder.

Once the Mobile Time is equal to Reminder time then the mail was drop to the user.

So How can i perform this operation by using timer or other.



Thanks

根据时间条件,发送电子邮件. AFAIK,您可以使用计时器控件.对于提醒事项,您可能会考虑安排它或使用Windows服务.

请查看有关使用C#发送电子邮件的提示:使用C#发送带有或不带有附件的电子邮件:通用例程. [
As per need of time condition, send an email. AFAIK, you can use Timer control. For reminder kind of thing, you might think of scheduling it or use a windows service.

Have a look at this tip for sending an email in C#: Sending an Email in C# with or without attachments: generic routine.[^]