Sign In  Sign Up Live-Chat

Create an email using an mhtml file as the body

Last post 11-04-2008, 4:51 AM by NickWhymark. 5 replies.
Sort Posts: Previous Next
  •  07-17-2008, 6:33 AM 135886

    Create an email using an mhtml file as the body

    Hi.

    Can you tell me if it is possible to create an email from an mhtml file. This is a file saved from word and does not include the email headers so spose.Network.Mail.MailMessage.Load() does not work.

    My requirements are:

    1. Save a word document to mhtml (*.mht).
    Create an email message using the mhtml as the body
    Create a text representation of the mhtml for the plain text part.
    Add addressing information & additional attachments
    send the email.

    Any help appreciated
    Nick

     
  •  07-17-2008, 6:50 AM 135887 in reply to 135886

    Re: Create an email using an mhtml file as the body

    Ignore that Aspose.Network.Mail.MailMessage.Load() seems to work now - not sure why it failed before.

    So, I have managed to send the mhtml and it is appearing in the body - however all of the in-line images are removed and appear as attachments to the email (in Outlook 2003 & 2007).

    Any idea how I can prevent that?

    Thanks,
    Nick.
     
  •  07-17-2008, 6:34 PM 135997 in reply to 135887

    Re: Create an email using an mhtml file as the body

    Hi Nick,

    Could you please post/send us the mht file for testing.


    Best Regards,

    Saqib Razzaq
    Support Developer
    Aspose Guangzhou Team

     
  •  07-18-2008, 8:09 AM 136075 in reply to 135997

    Re: Create an email using an mhtml file as the body

    Attachment: Present (inaccessible)
    Saquib,

    I've recreated easily.

    - created word document
    - added some text
    - copy/paste an image from web browser
    - save as .mht file.

    Attached is a screen shot of the message in OL2007 and a zip file with the mht file in.

    Thanks, Nick.
     
  •  07-18-2008, 8:43 AM 136086 in reply to 136075

    Re: Create an email using an mhtml file as the body

    Hi Nick,

    We are checking the issue and get back to you soon.


    Best Regards,

    Saqib Razzaq
    Support Developer
    Aspose Guangzhou Team

     
  •  11-04-2008, 4:51 AM 150836 in reply to 136086

    Re: Create an email using an mhtml file as the body

    Hi,

    Did this ever get fixed?

    Nick.
     
View as RSS news feed in XML