Embedding images in HTML email for Outlook

| No Comments
#!/bin/sh

echo "Content-Type: multipart/related; boundary=\"boundary-example\"; type=\"text/html\""
echo

echo "--boundary-example"
echo "Content-Type: text/html"
echo
echo "<h1>Email</h1>"
echo "<img src=\"cid:image.png\" alt=\"image\">"
echo
echo "--boundary-example"
echo "Content-Location: CID:something"
echo "Content-ID: <image.png>"
echo "Content-Type: image/png"
echo "Content-Transfer-Encoding: BASE64"
echo

base64 /tmp/image.png

echo "--boundary-example--"
./email.sh | sendmail some@emailaddress.com

Leave a comment

Myself

Projects

Monthly Archives

Photos

About this Entry

This page contains a single entry by Robert W. Rose published on July 17, 2014 11:32 AM.

Mount a Windows CD on a Mac like a Windows PC would see it was the previous entry in this blog.

Focus follows mouse in Mac Terminal is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.