Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using sendmail from the command line to send embedded images

Status
Not open for further replies.

stfaprc

Programmer
Feb 10, 2005
216
0
0
US
I can get sendmail to send html messages by sending a file shaped like this:
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>
But how can I create a text file to pipe through sendmail that would include embedded (and not simply attached) images in the email?
 
have you looked at a program called "mpack" ... which mime-encodes files to be sent to mail clients ... you can then send this file to sendmail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top