send mail with word doc in body and in attachment

nromainnromain Member Posts: 57
Hello everybody and have a nice new year,

We want to generate a mail which contains a word doc in the body of the mail AND the same word doc in attachment of the mail. The word doc contains merge fields (as used in segments in marketing). In Word management codeunit function "executemerge", we have the property wrdDoc.MailMerge.MailAsAttachment which define if the mergedoc will be send as attachment or not. I want both but the existing property makes me think that it's not possible. I thought evrything is possible with Navision. Do you have an idea? Is there somebody who has already done such a thing?

thanks for your answers,

Nicolas

Comments

  • KYDutchieKYDutchie Member Posts: 345
    Nicolas,

    What I have done in the past, is save the word document as an HTML file too and then stream the HTML file into the Body of the email. However this is limited in functionality especially with bitmaps.
    You can have bitmaps in the document, but I could not get these bitmaps loaded into the email.

    Hopes this helps,

    Regards,

    Willy
    Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
Sign In or Register to comment.