Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook: attaching files in HTML email
Message
De
20/11/2001 12:24:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Outlook: attaching files in HTML email
Divers
Thread ID:
00584033
Message ID:
00584033
Vues:
59
Hi, Folks:

I've done a little program to send emails by using Outlook model object. The program has to build an message with a HTML body, which shows an small image.

This program works fine, but the message delivered shows the HTML document correctly, BUT.... it also shows an attachment file. Then, when trying to close the message, I get this warning 'The message was modified. Do you want to save it?' So, if you answer Yes, next time you open the message, the file attachment disappears and the HTML remains perfect. (that's the goal!)

Does anyone know something about this? Perhaps configuring Type property in the Attachment object... I've tried with this without any success.

This is the code:

* After configuring general message properties....
* Image Tag was set with an space to avoid this site formatting loMessage.HTMLBody = 'HTML...< IMAGE SRC=sample.gif>...End HTML>'

loMessage.Attachments.Add( 'c:\images\sample.gif' )
loMessage.Send()

Thanks.....

Carlos A. Granitto
da Vinci - innovación tecnológica
Buenos Aires, Argentina
Carlos A. Granitto
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform