Add additional info to the email header.

Mar 2, 2013 at 7:44 AM
I need to add additional info to the email header. This ti to be user for tracking purposes in return emails.

Info I wish to add is

X-MessageRef: 3C982748CE574D56A324B010614F32BB

Appreciate someone explaining how I achieve this

Regards
Jeff
Coordinator
Mar 2, 2013 at 10:24 AM
Hi.
You can set your original header by below code

SmtpMessage mg = new SmtpMessage();
mg["X-MessageRef"] = "xxxx";

regards.