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