When I try to get HTML content from a file using MailMessage.GetHtmlBodyFromFile, I always get an attachment sent with the email. The attachment is named something like "AT000008.txt" and is 57 bytes in size. I even tried using MailMessage.Attachments.Clear() just before sending the email, but that didn't work.
Any help will be greatly appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using Microsoft Outlook 2002 SP-1 as my email client. The email server I'm using is Mail Enable Standard (Version 1.5.1) with the Mail Enable Professional Beta (Version 00.00.13) installed.
Let me know if need any additional info.
Thanks,
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I try to get HTML content from a file using MailMessage.GetHtmlBodyFromFile, I always get an attachment sent with the email. The attachment is named something like "AT000008.txt" and is 57 bytes in size. I even tried using MailMessage.Attachments.Clear() just before sending the email, but that didn't work.
Any help will be greatly appreciated.
What email client are you using? I want to reproduce this bug using that client. I have an idea of what might be causing it but I need to be sure.
thanks,
IanS
I'm using Microsoft Outlook 2002 SP-1 as my email client. The email server I'm using is Mail Enable Standard (Version 1.5.1) with the Mail Enable Professional Beta (Version 00.00.13) installed.
Let me know if need any additional info.
Thanks,
Mike
Can you post a snippet of your code where you build the message and call the SendMail() method?
Also, does the text file contain anything?
I don't have Outlook locally so I will have to find a client to test it on before I go much further.