using System.Net.Mail;
SmtpClient Mail = new SmtpClient(Bridge.GlobalBridge.WebServiceSMTPServer, Bridge.GlobalBridge.WebServiceSMTPPort);
System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential(Bridge.GlobalBridge.WebServiceEMail, Bridge.GlobalBridge.WebServiceEMailPWD);
Mail.UseDefaultCredentials = false;
Mail.Credentials = SMTPUserInfo;
Mail.UseDefaultCredentials = false;
Mail.Credentials = SMTPUserInfo;
string strTo = (string)dt.Rows[0]["EMailAddress"];
string strFrom = Bridge.GlobalBridge.WebServiceEMail;
string strSubject = "Autosdepo LLC.";
string strBody = (string)dt.Rows[0]["Password"];
Mail.Send(strFrom, strTo, strSubject, strBody);
string strFrom = Bridge.GlobalBridge.WebServiceEMail;
string strSubject = "Autosdepo LLC.";
string strBody = (string)dt.Rows[0]["Password"];
Mail.Send(strFrom, strTo, strSubject, strBody);
沒有留言:
張貼留言