使用SmtpMail类通过需要用户名和密码的smtp server发送邮件
Friday, 17. February 2006, 05:02:55
asp.net 1.1支持
使用MailMessage.Fields属性可以实现要求:
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", userName);
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", userPassword);
使用MailMessage.Fields属性可以实现要求:
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", userName);
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", userPassword);







How to use Quote function: