Mandrill does not store your images, but there are a few ways to include them in your emails. Below are some tips to help you get started.
-
Upload images to a publicly-accessible server or a reputable image hosting service. Then, link to the image URL in your message HTML or template:
-
You can also use merge tags to insert image names dynamically:
-
We recommend that you host your images on your own site instead of general sharing services. File and photo hosting sites could have other users' content on them and are more likely to be flagged by spam filters, be on blacklists, or cause failed content reviews for your Mandrill account.
-
Include images as inline attachments with your API calls using the
images
parameter. You must provide the image name (Content-ID), the content (as a base64 encoded string), and the image MIME type. Reference the image name in the 'src' in your HTML content: