Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook: attaching files in HTML email
Message
From
20/11/2001 12:24:57
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Outlook: attaching files in HTML email
Miscellaneous
Thread ID:
00584033
Message ID:
00584033
Views:
58
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
Next
Reply
Map
View

Click here to load this message in the networking platform