使用.net的c shap发送电子邮件 [英] send email using c shap with .net
本文介绍了使用.net的c shap发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友.
我想创建一个项目并发送带有附件的邮件.请帮助我继续执行此任务.请帮助我.
谢谢
hi friends.
i would like create a project with send a mail with attachement.please help me to go ahead with this task.please help me.
thank you
推荐答案
请参考以下主题:
用于在C#中发送带有附件的电子邮件的类. [ ^ ]
使用ASP.NET发送带有附件的邮件 [ ^ ]
使用SMTP服务器在ASP.NET中发送带有附件的电子邮件 [ ^ ]
C#代码片段,用于从中发送带有附件的电子邮件Outlook,Yahoo,HotMail,AOL和Gmail [通过C#通过SMTP发送邮件 [使用默认SMTP从C#应用程序发送电子邮件 [ ^ ]
通过.aspx C#发送邮件 [
Please refer following threads:
A class for sending emails with attachments in C#.[^]
Send Mail With Attachment File Using ASP.NET[^]
Sending Email with attachment in ASP.NET using SMTP Server[^]
C# Code snippet to send an Email with attachment from Outlook, Yahoo, HotMail, AOL and Gmail[^]
Some More:
Sending Mail Using C# via SMTP[^]
Sending Emails from C# Application using default SMTP[^]
Send mail through .aspx C#[^]
具有看看:
http://csharp.net-informations.com/communications/csharp-email-attachment.htm [^ ]
have a look at :
http://csharp.net-informations.com/communications/csharp-email-attachment.htm[^]
System.Net.Mail
类包含实现此目的的所有方法(函数).请看一下MSDN:
msdn.microsoft.com/zh-CN/library/system .net.mail(v = vs.80).aspx [ http://csharp.net-informations.com/communications/csharp-email-attachment.htm [^ ]
取决于您使用的是哪个提供程序(或说是哪个smtp服务器),您必须查看正确的凭据,端口以及提供程序可能使用SSL.此处提供了针对不同提供商的示例的良好链接:
C#代码段,用于从中发送带有附件的电子邮件Outlook,Yahoo,HotMail,AOL和Gmail [ http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol [
Hi,
System.Net.Mail
Class contains all methods (functions) to achieve this. Please have a look at MSDN:
msdn.microsoft.com/en-US/library/system.net.mail(v=vs.80).aspx[^]
System.Net.Mail also contains an class for E-Mail Attachments, have a look at this code example:
http://csharp.net-informations.com/communications/csharp-email-attachment.htm[^]
Depends which Provider (or lets say which smtp server) you''re using, you must have a look for correct credentials, Port and maybe provider uses SSL. A good link with examples for different providers here:
C# Code snippet to send an Email with attachment from Outlook, Yahoo, HotMail, AOL and Gmail[^]
Wikipedia:
http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol[^]
Regards
这篇关于使用.net的c shap发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文