在公路上爬行

jiang's blog

使用SmtpMail类通过需要用户名和密码的smtp server发送邮件

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);

什么时候应该使用 ==?什么时候应该使用 Equals?使用onPropertyChange属性

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies