|
Adding message headers |
|
You can add custom headers to an email message by invoking the AddHeader method and passing it a MimeHeader instance. Custom header names generally start with an "X" followed by a hyphen and a header name.
Example
[C#]
MimeHeader agent = new MimeHeader("X-Mailer", "Microsoft Outlook");
message.AddHeader(agent);
[Visual Basic]
Dim agent As MimeHeader = Nothing
agent = New MimeHeader("X-Mailer", "Microsoft Outlook")
message.AddHeader(agent)