Do email clients all return custom headers on emai

2019-06-08 19:10发布

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

2条回答
劫难
2楼-- · 2019-06-08 19:28

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.

查看更多
Root(大扎)
3楼-- · 2019-06-08 19:39

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.

查看更多
登录 后发表回答