每隔X分钟发送一次带文件的电子邮件 [英] Send E-mail With File Every X Minutes
本文介绍了每隔X分钟发送一次带文件的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在处理我的小程序,我需要知道一些事情!
我希望vb程序每5分钟用一个文件(附件.txt)向我的电子邮件发送邮件(自动)
(发送者用户名和密码在该应用程序中设置为alredy)
如果有人能告诉我,我会很高兴
Im working on my little program and i need to know something!
I want the vb program to send a mail (automatically ) to my email every 5 min with a file (attachment .txt)
(sender username and password is alredy set in that application)
If anybody could tell me that i would be verry happy
推荐答案
我建议使用定时器控件,然后甚至可能将其创建为Windows服务。
I would recommend using a timer control and then even possibly create this as a windows service.
这是 Windows任务的完美任务调度
。例如,请参阅:Windows调度程序每x运行一次任务-分钟?在堆栈溢出 [ ^ ]。
This is perfect task for the the Windows Task Scheduler
. See, for instance: "windows scheduler to run a task every x-minutes?" at Stack Overflow[^].
这篇关于每隔X分钟发送一次带文件的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文