用cmd发送电子邮件
问题描述:
我想通过cmd发送电子邮件,我该怎么做? 谢谢.
hi i want to send email by cmd how can i do this????
thanks.
答
如果您正在谈论命令行电子邮件,则需要做很多工作:您必须提供地址,主题和消息正文作为最低,并且这并非微不足道,除非您真的对用户不友好.
如果您正在谈论要在任何时候从应用程序发送电子邮件,请在此处查看: ^ ]
If you are talking about command line Emailing, then it is quite a lot of work: you have to provide for to address, subject and message body as a minimum, and that is not trivial, unless you are really user-unfriendly.
If you are talking about sending an email from your app whenever you need to, then have a look here: Sending an Email in C# with or without attachments: generic routine.[^]
^ ]
http://support.microsoft.com/kb/193685 [
http://www.petri.co.il/send_mail_from_script.htm[^]
http://support.microsoft.com/kb/193685[^]