J
John Viescas
I recently ran into an interesting question in one of the Access e-groups I
visit. I know how to set up and send an HTML message from VBA using the
HTMLBody property. But how does one embed an image? I suppose the simplest
way is to make the image available on a public website and the set SRC= to
point to that file. But I know that I can also imbed the image directly
from the UI -- outlook sends the image as an encoded MIME part of the
message and references it with a CID:. Interestingly, if you try to Save As
HTML a message that you've received this way, Outlook doesn't save the
<nextpart> encoded image. It would be cool if Outlook had a macro recorder
like Word and Excel so that I could go through the steps in the UI and see
what Outlook actually does.
So, the question is: How do you embed an image in an HTML message using
automation form VBA?
TIA,
visit. I know how to set up and send an HTML message from VBA using the
HTMLBody property. But how does one embed an image? I suppose the simplest
way is to make the image available on a public website and the set SRC= to
point to that file. But I know that I can also imbed the image directly
from the UI -- outlook sends the image as an encoded MIME part of the
message and references it with a CID:. Interestingly, if you try to Save As
HTML a message that you've received this way, Outlook doesn't save the
<nextpart> encoded image. It would be cool if Outlook had a macro recorder
like Word and Excel so that I could go through the steps in the UI and see
what Outlook actually does.
So, the question is: How do you embed an image in an HTML message using
automation form VBA?
TIA,