如何发送带有附件的Windows C#.net电子邮件发送 [英] how to send windows C# .net email send with attachment
本文介绍了如何发送带有附件的Windows C#.net电子邮件发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何发送带有附件的Windows C#.net电子邮件发送
how to send windows C# .net email send with attachment
推荐答案
您可以使用此...
You can use this...
MailMessage emailSupportSender = new MailMessage();
emailSupportSender.To.Add(new MailAddress(receipents));
emailSupportSender.From = new MailAddress(sender);
emailSupportSender.Subject = subject;
Attachment attach = new Attachment("filename");
emailSupportSender.Attachments.Add(attach);
................
..................
...............
请参阅以下链接.
http://social.msdn.microsoft.com/forums /en/netfxnetcom/thread/a75533eb-131b-4ff3-a3b2-b6df87c25cc8/ [ http://emailarchitect.net/easendmail/kb/csharp.aspx [ http://csharp.net-informations.com/communications/csharp-smtp-mail.htm [^ ]
好的方法是先尝试自己,然后对任何问题发表疑问.
希望对您有帮助.
Refer the below links.
http://social.msdn.microsoft.com/forums/en/netfxnetcom/thread/a75533eb-131b-4ff3-a3b2-b6df87c25cc8/[^]
http://emailarchitect.net/easendmail/kb/csharp.aspx[^]
http://csharp.net-informations.com/communications/csharp-smtp-mail.htm[^]
The good way is to try first your self and then post question for any issue.
Hope this will help you.
这篇关于如何发送带有附件的Windows C#.net电子邮件发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文