using godaddy as service I send the mail. However, the mail do not appear at the To email address
Posted on 2013-12-14
using godaddy as service I send the mail. However, the mail do not appear at the To email address. Instead the mail appears in the in folder my email account on Godaddy on the application.
I would like to see the mail in the sent folder in my account and to the To email account.
Please help. Thanks
public static void sendmail(string strFrom, string strToName, string strTo, string strSubject, string strBody)
MailMessage EmailMsg = new MailMessage();
EmailMsg.From = new MailAddress(strFrom,strFrom);
EmailMsg.To.Add(new MailAddress(strToName, strTo));
EmailMsg.Subject = strSubject;
EmailMsg.Body = strBody;
EmailMsg.IsBodyHtml = true;
// EmailMsg.Priority = MailPriority.Normal;
SmtpClient MailClient = new SmtpClient();