Do email clients all return custom headers on email replies?

南楼画角 提交于 2020-01-03 05:23:09

问题


If I create a custom header in my email when sending, will all email clients return the custom header when someone replies to the email?

Ex)

MailMessage mail = new MailMessage();
mail.To = "me@mycompany.com";
mail.From = "you@yourcompany.com";
mail.Subject = "this is a test email.";
mail.Body = "this is my test email body.";
mail.Headers.Add( "X-Company", "My Company" );  <---- This is my custom header.
SmtpMail.SmtpServer = "localhost";  //your real server goes here
SmtpMail.Send( mail );

Thanks


回答1:


For completeness, rfc-822 and In-Reply-To: header should be mentioned - though it's optional (indeed applications are not obliged to add it).

If the header is present, it must be a replied email.




回答2:


You cannot guarantee what any given client will do, so I'd hazard a guess at "no"; particularly so since, whether retaining of custom headers is in the specification or not, applications are wont for not adhering to specifications here and there.

So, there is no guarantee, it is up to the clients implementation.



来源:https://stackoverflow.com/questions/17034222/do-email-clients-all-return-custom-headers-on-email-replies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!