HTML inline images

You can use inline images in the HTML body of the email. This body consists of two parts: one is a tag in the HTML pointing to the image to be shown. The other part is part of the header. This is the content ID.

HTML tag

In the body, use the following tag.

 <img src = "cid:image@hostname">

Replace image with the actual image name and hostname with the actual host name. The image@hostname location is the same as used in Attachment parameter of the Mail command. The name of the location must be unique for an object.

Content-ID in MAIL command

The content-ID placed in the HTML body must also be passed to the MAIL command. This is done as part of the Attachments parameter.

Attachments("c:\mail\body.txt,c:\mail\body.html,[image@hostname]path\image.gif")