[NTLUG:Discuss] sending an HTML email from command line

Greg Hewett ghewett at d-techcorp.com
Mon Jun 18 12:25:21 CDT 2001


I am sorry that I do not have all the details, but I think that I can get you
on the right track.   I have done this before, but I used "sendmail"
instead of the mail program, and I had to change the Content-type to be
text/html.

This is what I just typed into the terminal, and it worked.

<terminal>

-(greg at greg)-(3)-> /usr/sbin/sendmail ghewett at d-techcorp.com
From: Greg       
Subject: stuff
Content-type:  text/html
<html>
<body>        
hello
</body>
</html>
.  

</terminal>


Greg

On Mon, Jun 18, 2001 at 12:05:34PM -0500, Steve Jackson wrote:
> I have an HTML file that I want to send as an email using the 'mail' command
> line app.  I thought you could specify a file name on the command line and
> 'mail' would use this file as the body of the message.  However, maybe I
> remembered incorrectly.  I want to make the HTML page show up in the
> receiver's email app (I know some email apps don't support HTML, but for
> this conversation let's assume they do) not as an attachment.  Any help or
> info would be great.  Thanks guys (and gals).
> 
> Jackson
> 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss



More information about the Discuss mailing list