MailMessage Mailer = new MailMessage(); Mailer.From = PreparedBy; Mailer.Cc = PreparedBy; Mailer.To = Mailto; Mailer.Subject = "Held project "+ProjectNo+" notification by "+PreparedBy+""; string body= "The project has been Held:["+ProjectNo+"] by ["+PreparedBy+"] \n\r"; body=body+"Click here to enter the PMS II for this project: \n"; body=body+"http://172.16.21.166/Plan/Plan/PlanEdt.aspx?id="+strID+"&No="+ProjectNo+""+"\n\r"; body=body+"NOTE: It is a notification message. Please do not reply directly to this mail."; Mailer.Body = body; SmtpMail.SmtpServer ="sjexchange1"; SmtpMail.Send(Mailer);
给点暗示
Mailer.From = PreparedBy;
Mailer.Cc = PreparedBy;
Mailer.To = Mailto;
Mailer.Subject = "Held project "+ProjectNo+" notification by "+PreparedBy+"";
string body= "The project has been Held:["+ProjectNo+"] by ["+PreparedBy+"] \n\r";
body=body+"Click here to enter the PMS II for this project: \n";
body=body+"http://172.16.21.166/Plan/Plan/PlanEdt.aspx?id="+strID+"&No="+ProjectNo+""+"\n\r";
body=body+"NOTE: It is a notification message. Please do not reply directly to this mail.";
Mailer.Body = body;
SmtpMail.SmtpServer ="sjexchange1";
SmtpMail.Send(Mailer);
[email protected]
[email protected]