Liam Delahunty: Home Tips Design Web Words Links Contact

 

Panda Internet Security 2007 - $15 Discount Coupon
CoffeeCup Software
Download Free Web Design Software Here

Sponsors:

Recommended laptop
under £500
.

Think I deserve a present? See my Amazon Wish List


Linux, send html email from command line

sending a HTML document via email (linux command line) so that it appears as HTML to the recipient.

Prepare your message body so that it does contain (in addition to the HTML body) the following mail header lines:

To: address@example.com
Subject: Subject
Content-Type: text/html; charset="us-ascii"
/* You can of course add more header lines if necessary. */

<html>
... your carefully crafted html content ...
</html>

You of course have to replace the To address and the subject line.

Save this as mail_html.html.

Use sendmail to send this message:

/usr/sbin/sendmail address@example.com < mail_html.html

Share this!  



Linux Search And Replace Multiple Files | Linux Send Html Email From Command Line | Linux Vi String Substitution


 

  Tips | Home | Search | Contact

Link here: