Hi,

Does anyone know if it's possible to add a custom header to the MailMessage class in vb.net for voting buttons?

I was able to add a custom header for "Reply-to", and send the email, but I need to know if it's possible for vb.net.

Should I be using other classes or components for this?
Here is sample code....


code Code:
  1. Imports System.Web.Mail
  2.  
  3. Module Module1
  4.  
  5.     Sub Main()
  6.  
  7.         Dim message As New MailMessage
  8.         message.To = "[email protected]"
  9.         message.From = "[email protected]"
  10.         message.Subject = "test"
  11.         message.Body = "test"
  12.         message.Headers.Add("?", "?") 'what goes here?
  13.  
  14.         Dim email As SmtpMail
  15.         email.SmtpServer = "mail.bubba.com"
  16.  
  17.         email.Send(message)
  18.  
  19.     End Sub
  20.  
  21. End Module