软录 · 2023年10月21日

asp发送qq邮件|如何用ASP发送邮件

㈠ 用asp.net+c#如何将网页留言直接发送到qq邮箱请回答详细点,谢谢!

你要做其实就是一个发送邮件的过程,很简单的其实你要用到的就是System.Web.Mail 命名空间下得几个类 1. MailMessage ,提供属性和方法来创建一个邮件消息对象。(Provides properties and methods for constructing an e-mail message.) 2. MailAttachments – 提供属性和方法来创建一个邮件附件对象。(Provides properties and methods for constructing an e-mail attachment.) 3. SmtpMail – 提供属性和方法通过使用windows 2000 CDOSYS 的消息组件的联合数据对象来发送邮件消息)。(Provides properties and methods for sending messages using the Collaboration Data Objects for Windows 2000 (CDOSYS) message component)剩下的不多说了,自己去查下这几个类的属性方法,你就会明白了代码我是随便在往上找得,你可以自己自己去找找其实很多的。

㈡ 如何用asp.net实现“给qq邮箱发送邮件”

在标签中添加代码。

㈢ 如何用ASP发送邮件

用ASP发送邮件方法:首先Set mail = Server.CreateObject("CDONTS.NewMail")以呼叫SMTP Service的元件,然后设定:mail.To = "收件者E-Mail地址"mail.From = "寄件者的E-Mail地址"mail.Subject = "主旨"mail.Body = "E-mail内文"最后Mail.Send即开始发送邮件。例如:<%Set mail = Server.CreateObject("CDONTS.NewMail")mail.TO = "[email protected]"mail.From = "[email protected]"mail.Subject = "主题"mail.Body = "E-Mail内容"mail.Send%>一切搞定