how can i send an email as part of a gmail conversation via smtp? Capturing the same object does not work ...
tell me if you need more information ... thanks in advance!
MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com"); mail.From = new MailAddress("@googlemail.com"); mail.To.Add("@.com"); mail.Subject = "(Somee.com notification) New order confirmation"; mail.Body = "(Somee.com notification) New order confirmation"; SmtpServer.Port = 587; SmtpServer.Credentials = new System.Net.NetworkCredential("", ""); SmtpServer.EnableSsl = true; SmtpServer.Send(mail);
einUsername
source share