I'm trying to send a multipart/related HTML email with embedded gif images. This email is generated using Oracle PL/SQL. My attempts have failed, with the image showing up as a red X (in Outlook 2007 and yahoo mail)
I've been sending HTML emails for some time, but my requirements are now to use several gif images in the email. I can store these on one of our web servers and just link to them, but many users' email clients will not show them automatically and will need to either change settings or manually download them for each email.
So, my thoughts are to embed the image. My questions are:
- What am I doing wrong here?
- Is the embedding approach the correct one?
- Any other options if I need to use more and more images? Attachments won't work, as the images are typically logos and icons that won't make sense out of the context of the message. Also, some elements of the email are links into an online system, so generating a static PDF and attaching won't work (to my knowledge anyway).
Content-Type: multipart/related; boundary="a1b2c3d4e3f2g1"
<p><IMG SRC="cid:my_logo" alt="Logo"></p>
... more html here ...
[base64 image data here]
BTW: The yes, I have verified that the base64 data is correct, as I can embed the image in the HTML itself (using the same algo use for creating header data) and see the image in Firefox/IE.
I should also note that this is NOT for spam, the emails are sent to specific clients who are expecting it daily. The content is data-driven, and not adverts.