Location:
Search - MailMessage
Search list
Description: C#编写的高级smtp客户端,控制台程序,可自行改写为Windows程序,功能齐全,除了基本的发件人地址,收件人地址(可以指定多个收件人,目前程序中设定为10个,可自行更改),主题,内容外,还能发附件(能发多个附件),能指定优先级别,能指定按HTML或TEXT发送,能指定发件人名称。一共有五个文件,MailAttachments.cs是负责处理附件的,MailMessage.cs是负责处理邮件消息的,SmtpMail.cs是负责联系SMTP服务器的,SmtpServerHelper.cs是主要的文件,负责与SMTP服务器交互并发送邮件,TestSmtpMail.cs是测试该SMTP客户端用的。可以用户将VS.NET 2003将各个文件添加到一个工程中后进行编译调试,也可分别把前四个文件编译成DLL(注意先后顺序和相互引用),然后把TestSmtpMail.cs编译成EXE后运行进行测试。-C# prepared by the High smtp client, console procedures, may rewritten for Windows programs, a full range of functions, in addition to the address of the sender, the recipient address (you can specify a number of the addressee, the current procedures set for 10, can make changes), the theme, the content, but also the annex (Annex can be made more), will appoint a priority level, can designated by HTML or TEXT sent, the sender can be designated name. A total of five papers MailAttachments.cs are responsible for the annex, MailMessage.cs is responsible for handling e-mail messages. SmtpMail.cs is responsible for liaising SMTP server, SmtpServerHelper.cs is the main document, with interactive SMTP server and send mail, TestSmtpMail.cs is to test the SMTP client use. Users will be VS.NET 200
Platform: |
Size: 20046 |
Author: 张杰 |
Hits:
Description: MailMessage m = new MailMessage()
m.From =\"leo43@1dwd.com\"
m.To = \"leo43@qq.com\"
m.Subject = \" 请问你们的图书光盘不能正常使用是怎么回事\"
m.Body = \"非常抱歉,原始的配套光盘有错,现在您可以到中国水利水电出版社的网站上下载正确的源代码\"
m.BodyFormat = MailFormat.Text
m.Priority = MailPriority.High
//SmtpMail.SmtpServer=\"smtp.mail.com\"
SmtpMail.Send(m) -MailMessage m = new MailMessage () = m.From "leo43@1dwd.com" m.To = "leo43@qq.com" m.Subject = "Does your CD library use is not normal matter how" m.Body = "very sorry, matching the original discs are wrong, and now you can go to the China Water Conservancy and Hydropower publisher's Web site to download the correct source code" m.BodyFormat = = MailFormat.Text m.Priority MailPriority.High / / SmtpMail.SmtpServer = "smtp.mail.com "SmtpMail.Send (m)
Platform: |
Size: 475067 |
Author: 赖恒 |
Hits:
Description: C#编写的高级smtp客户端,控制台程序,可自行改写为Windows程序,功能齐全,除了基本的发件人地址,收件人地址(可以指定多个收件人,目前程序中设定为10个,可自行更改),主题,内容外,还能发附件(能发多个附件),能指定优先级别,能指定按HTML或TEXT发送,能指定发件人名称。一共有五个文件,MailAttachments.cs是负责处理附件的,MailMessage.cs是负责处理邮件消息的,SmtpMail.cs是负责联系SMTP服务器的,SmtpServerHelper.cs是主要的文件,负责与SMTP服务器交互并发送邮件,TestSmtpMail.cs是测试该SMTP客户端用的。可以用户将VS.NET 2003将各个文件添加到一个工程中后进行编译调试,也可分别把前四个文件编译成DLL(注意先后顺序和相互引用),然后把TestSmtpMail.cs编译成EXE后运行进行测试。-C# prepared by the High smtp client, console procedures, may rewritten for Windows programs, a full range of functions, in addition to the address of the sender, the recipient address (you can specify a number of the addressee, the current procedures set for 10, can make changes), the theme, the content, but also the annex (Annex can be made more), will appoint a priority level, can designated by HTML or TEXT sent, the sender can be designated name. A total of five papers MailAttachments.cs are responsible for the annex, MailMessage.cs is responsible for handling e-mail messages. SmtpMail.cs is responsible for liaising SMTP server, SmtpServerHelper.cs is the main document, with interactive SMTP server and send mail, TestSmtpMail.cs is to test the SMTP client use. Users will be VS.NET 200
Platform: |
Size: 19456 |
Author: |
Hits:
Description: MailMessage m = new MailMessage()
m.From ="leo43@1dwd.com"
m.To = "leo43@qq.com"
m.Subject = " 请问你们的图书光盘不能正常使用是怎么回事"
m.Body = "非常抱歉,原始的配套光盘有错,现在您可以到中国水利水电出版社的网站上下载正确的源代码"
m.BodyFormat = MailFormat.Text
m.Priority = MailPriority.High
//SmtpMail.SmtpServer="smtp.mail.com"
SmtpMail.Send(m) -MailMessage m = new MailMessage () = m.From "leo43@1dwd.com" m.To = "leo43@qq.com" m.Subject = "Does your CD library use is not normal matter how" m.Body = "very sorry, matching the original discs are wrong, and now you can go to the China Water Conservancy and Hydropower publisher's Web site to download the correct source code" m.BodyFormat = = MailFormat.Text m.Priority MailPriority.High// SmtpMail.SmtpServer = "smtp.mail.com "SmtpMail.Send (m)
Platform: |
Size: 475136 |
Author: 赖恒 |
Hits:
Description: 邮件的实体,告诉你如何编写一个邮件的内容。-E-mail entity, to tell you how to write an e-mail content.
Platform: |
Size: 4096 |
Author: 尹寿垚 |
Hits:
Description: delphi 完全原代码,可以在d7 and windows xp下编译通过-delphi full source code, you can under the d7 and windows xp the compiler through
Platform: |
Size: 334848 |
Author: maorongcai |
Hits:
Description: 电子邮件mail收发功能都全面具备,企业内部应用吐血公开-Send and receive e-mail features are fully equipped, open enterprise applications hematemesis
Platform: |
Size: 4096 |
Author: zhao |
Hits:
Description: 利用System.Web.Mail这个名称空间.在这个名字空间下,有一个专门使用SMTP协议来发送邮件的类:SmtpMail,它已能满足最普通的发送邮件的需求。这个类只有一个自己的公共函数--Send()和一个公共属性—SmtpServer,您必须通过SmtpServer属性来指定发送邮件的服务器的名称(或IP地址),然后再调用Send()函数来发送邮件。您可以在Send函数的参数MailMessage对象中设置邮件的相关属性,如优先级、附件等等。除了以MailMessage对象为参数(如上述代码),Send函数还可以简单的直接以邮件的4个主要信息(from,to,subject,messageText)作为字符串参数来调用。-The use of System.Web.Mail namespace. In the name space, there is a special SMTP protocol used to send the message class: SmtpMail, it has been able to send messages to meet the most common needs. This class is only one of their public functions- Send () and a public property-SmtpServer, you must SmtpServer attribute to specify the sending mail server' s name (or IP address), and then call the Send () function to send a message. Send function, you can set the parameters of MailMessage object mail-related properties, such as priority, accessories and more. In addition to the MailMessage object as an argument (such as the above code), Send function, you can simply e-mail directly to the 4 key messages (from, to, subject, messageText) as a string parameter to call.
Platform: |
Size: 51200 |
Author: shen6041 |
Hits:
Description: MailMessage m new MailMessage() m,From leo43-MailMessage m new MailMessage (m), the From leo43
Platform: |
Size: 398336 |
Author: KUfiq_983 |
Hits: