×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

using sendmail from the command line to send embedded images

using sendmail from the command line to send embedded images

using sendmail from the command line to send embedded images

(OP)
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="http://www.tek-tips.com">tektips 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?

RE: using sendmail from the command line to send embedded images

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close