Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How to send HTML-based mail from the command line?

How to send HTML-based mail from the command line?
Thread Tools
Posting Junkie
Join Date: Jun 2000
Location: Union County, NJ
Status: Offline
Reply With Quote
Apr 6, 2004, 08:48 AM
 
Hi all,
I'm working on a daily autobuild of our product and I want to format the mail in HTML so that the sections of the report are easily seen (warnings, errors, timings, etc). Nothing fancy. I know people are against HTML mail but I'm not posting pictures of pretty flowers. Is there a way to do it using the mail command-line tool? I already have the HTML formatted but I can't seem to get mail to send it AS HTML. Thanks.

Mike
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Apr 6, 2004, 10:07 AM
 
Originally posted by starman:
Hi all,
I'm working on a daily autobuild of our product and I want to format the mail in HTML so that the sections of the report are easily seen (warnings, errors, timings, etc). Nothing fancy. I know people are against HTML mail but I'm not posting pictures of pretty flowers. Is there a way to do it using the mail command-line tool? I already have the HTML formatted but I can't seem to get mail to send it AS HTML. Thanks.

Mike
You could do it, but you'd have to do the MIME encoding yourself. I suspect you'll want to use a script to help you with that (Perl, Python, etc.). Just look at the source for a MIME message and emulate it. It's not too tough.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:22 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2