Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Advanced MailMessage Options


Message #1 by N.Piggot@n... on Thu, 13 Jun 2002 12:59:46
Has anyone had any success in accessing the .Headers collection
for System.Web.Mail.MailMessage objects?

As it's an IDictionary interface, and MailMessage.Headers.IsReadOnly is 
false, I would have assumed that MailMessage.Headers.Add(key,value) would 
work. Checking the Headers collection after the .Add command does bring 
back the correct values for various keys, however the exception is being 
thrown on the SmtpMail.Send(MailMessage) command.

Thanks,

Neil

  Return to Index