Gmail Conversation via smtp

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); 
+7
source share
1 answer

You will need to use the following:

 mail.Headers.Add("In-Reply-To", <messageid>); 

The identifier of the message you should receive from previous email headers. Just find the "Message-Id".

This answer provides some headers that you might want to add in order to try streaming other clients. It seems that gmail also uses them.

+7
source

All Articles