如果文件更新了系统,我如何创建将发送邮件的程序 [英] How Do I Create A Program That Will Send A Mail If Files Updated A System Or Not

查看:143
本文介绍了如果文件更新了系统,我如何创建将发送邮件的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个程序,该程序将发送文件以更新系统,现在更新后,我必须创建一个程序,该程序将通过邮件发送反馈,以说明哪些文件已更新而哪些文件未能更新系统..我该怎么办

I have created a program that will send files to update a system,now after updating i have to create a program that will send feedback by mail to say which files updated and which failed to update the system..how do i go about?

推荐答案

您可以从探索如何使用c#发送电子邮件开始.
参见例如 MSDN:SmtpClient类 [
You can start with exploring how to send an email using c#.
See, for example, MSDN: SmtpClient Class[^]
There are other methods to and quite easy to find with a little research.

You also have to design the mail message subject and body.
Depending on who the receiver(s) is/are this can be a sensitive matter formulating the correct phrases.
If you don''t have any company policy to worry about you can just list the files in a table or something. It should be easy to read, though.

Another thing to consider is the mail list.
This is an automated process, so you will have a list of recipients to send the mail to.
This list should be configurable, so you can change the list easily.
And even if you have one name for now, make it a list, because three weeks later someone is bound to want this feature.


这篇关于如果文件更新了系统,我如何创建将发送邮件的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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