How do I send emails through the email server to be verified?
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 );
}
References:
Http://vaultpub.sourcegear.com/VaultService/VaultWeb/Blame.aspx? Repid = 7 & Path = $/dottext. Framework/email/systemmail. CS & version = 1 & export dedversions = 20 (the user name and password are guest)
Http://www.systemwebmail.com/faq/3.8.aspx