Adding E-mail headers

Joined
Jul 5, 2006
Messages
9
Programming Experience
1-3
Hi guys,

I am using the System.Web.Mail.MailMessage object to create e-mail messages that I want Lotus to interperet as meeting requests.

To that end I have added the following header items to the message as follows:

VB.NET:
[SIZE=2]EmailMessage.BodyEncoding = System.Text.Encoding.UTF7[/SIZE]
[SIZE=2]EmailMessage.Headers.Add("Content-Type", "text/X-vCalendar")[/SIZE]
[SIZE=2]EmailMessage.Headers.Add("Content-Transfer-Encoding", "7bit")[/SIZE]
[SIZE=2]EmailMessage.Headers.Add("Content-Disposition", ICS_ID & ".ics")[/SIZE]

However when the e-mail is received, analysis of the e-mail header shows that none of the added headers are present..

Does anyone know what might be going on and what I can do to get these headers to be recognised.

Any help is as always greatly appreciated.

Cheers,

Chris
 
Back
Top