System.Web.Mail Problem with Quoted Printable

  • Thread starter Thread starter Lucas Tam
  • Start date Start date
L

Lucas Tam

Is there a way to change System.Web.Mail's Content Transfer Encoding? It's
currently using Quoted Printable... However, a piece of software on the
receiving end does not support Quoted Printable.

Is there a way to switch the encoding type?

Thanks!
 
Dim myMail As New MailMessage()
myMail.From = "(e-mail address removed)"
myMail.To = "(e-mail address removed)"
myMail.Subject = "UtilMailMessage001"
myMail.Priority = MailPriority.Low
myMail.BodyFormat = MailFormat.Html
myMail.Body = "<html><body>UtilMailMessage001 - success</body></html>"
Dim myAttachment As New MailAttachment("c:\attach\attach1.txt",
MailEncoding.Base64)
myMail.Attachments.Add(myAttachment)
SmtpMail.SmtpServer = "MyMailServer"
SmtpMail.Send(myMail)
 
Forgot to add this as another example:

Dim myMessage As Web.Mail.MailEncoding = MailEncoding.Base64
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top