Menu

Problem with MailMessage.GetHtmlBodyFromFile

Help
2003-01-13
2003-01-14
  • Michael Piehota

    Michael Piehota - 2003-01-13

    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.

     
    • Ian Stallings

      Ian Stallings - 2003-01-14

      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

       
    • Michael Piehota

      Michael Piehota - 2003-01-14

      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

       
    • Ian Stallings

      Ian Stallings - 2003-01-14

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.