Home » ASP.NET » c# send

c# send

 / / / 
Just email
/ / /

/ / / text
/ / / title
/ / / send mail
/ / / receiving mailbox
/ / /
Public, static, bool, sendMail (string, Body, string, title, string, fromMail, string, toMail)
{
MailMessage mm = new, MailMessage ();
Mm.BodyFormat = MailFormat.Html;
Mm.BodyEncoding = System.Text.Encoding.Default;
Mm.Priority = MailPriority.High;
Mm.From = fromMail;
Mm.To = toMail;
Mm.Subject = title;
Mm.BodyEncoding = Encoding.UTF8;
Mm.Body = Body;
SmtpMail.SmtpServer = "mail.qq.com"";
Try
{
SmtpMail.Send (mm);
Return true;
}
Catch
{
Return false;
}
}



copyright notice: This article is original article for blogger. Without permission from blogger,.

must not be reprinted

Latest