ASP.NET Send Email

 

            MailMessage Mymessage = new MailMessage();

            Mymessage.To = "shaozhd@263.net";

            Mymessage.From = "shaozhd@263.net";

            Mymessage.Subject = "ASP.NET Error";

            Mymessage.BodyFormat = MailFormat.Text;

            Mymessage.Body = strMessage;

            SmtpMail.Send(Mymessage);

posted @ 2008-03-13 10:08  choirboy  阅读(255)  评论(0编辑  收藏  举报