
用asp.net+c#如何将网页留言直接发送到qq邮箱?请回答详细点,谢谢! 50
展开全部
你要做其实就是一个发送邮件的过程,很简单的其实你要用到的就是
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)
剩下的不多说了,自己去查下这几个类的属性方法,你就会明白了
代码我是随便在往上找得,你可以自己自己去找找其实很多的。
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)
剩下的不多说了,自己去查下这几个类的属性方法,你就会明白了
代码我是随便在往上找得,你可以自己自己去找找其实很多的。
参考资料: http://www.jb51.net/article/14679.htm
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询