The happy blog is actually deleted after deletion, and it is lost. I still want to read a lot of information. Fortunately, I have backed up a few articles in the past. paste them. It can be seen that the relay is also very valuable, at least one lost and can find another
The following post:
Since the launch of the. NET Framework, everyone has been worrying about this issue. Indeed, in 1.0, we cannot implement this scheme. Most people choose to use the socket underlying layer to rewrite it themselves. However, Microsoft has provided the verification function in 1.1, but it has never been made public.
I am reading the. Text 0.95Source codeThis section was foundCode, I feel it should be provided to you
private void page_load (Object sender, system. eventargs e)
{< br> mailmessage mail = new mailmessage ();
mail. to = "me@mycompany.com";
mail. from = "you@yourcompany.com";
mail. subject = "this is a test email. ";
mail. body = "some text goes here";
mail. fields. add ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); // Basic Authentication
mail. fields. add ("http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here"); // set your username here
mail. fields. add ("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); // set your password here
Smtpmail. smtpserver = "mail.mycompany.com"; // your real server goes here
Smtpmail. Send (Mail );
}
Http://www.systemwebmail.com/faq/3.8.aspx