I can get sendmail to send html messages by sending a file shaped like this:
But how can I create a text file to pipe through sendmail that would include embedded (and not simply attached) images in the email?
Code:
MIME-Version: 1.0
From: me
To: you
Subject: html without images
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title>email HTML content</title>
</head>
<body bgcolor="#ffffff" text="#000000">
ok, so let me try this.<br>
<b>bold</b><br>
lets try font changing<br>
<font face="Courier New, Courier, monospace">courier<br>
<font face="Times New Roman, Times, serif">times<br>
<font face="Helvetica, Arial, sans-serif">arial<br>
<a href="[URL unfurl="true"]http://www.tek-tips.com">tektips[/URL] home page</a><br>
<br>
finished!<br>
<br>
</font></font></font>
</body>
</html>