/**/ /// <Summary>
///Send email
/// </Summary>
Internal Void Send ()
{
System. Web. Mail. mailmessage = New Mailmessage ();
Mailmessage. From = " Fmzzs@126.com " ;
Mailmessage. = " Zhang Dawei " ;
Mailmessage. Subject = " I am the topic " ;
Mailmessage. Body = " I am content " ;
Mailmessage. CC = " Zhang Ming " ;
Mailmessage. Fields. Add ( " Http://schemas.microsoft.com/cdo/configuration/smtpauthenticate " , " 1 " );
Mailmessage. Fields. Add
( " Http://schemas.microsoft.com/cdo/configuration/sendusername " , Myemailusername );
// User name in your mailbox
Mailmessage. Fields. Add ( " Http://schemas.microsoft.com/cdo/configuration/sendpassword " , Myemailpassword );
// Password of your mailbox
System. Web. Mail. smtpmail. smtpserver = " Smtp.126.com " ; // SMTP Server
System. Web. Mail. smtpmail. Send (mailmessage );
}
This method is a bit old for sending emails. It is the system of DOTNET 2.0. net space has a new sending method, because of the worry, so did not look. this should be the study notes, and I will study new ones next time.