• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Format E-Mail as HTML

Is anyone aware of a tool which will allow me to format Unix Mail as html? I need to be able to deliver mail in a browser ( ala Hotmail ).

0
howesd
Asked:
howesd
  • 2
1 Solution
 
chris_calabreseCommented:
First, there are already a bunch of commercial systems that do this.

Meanwhile, the easiest way to do this is just put each mail into a text file and blast it out.  You won't get formatting of embedded tags or proper MIME attachments, but you won't get the security headaches that go with them either.

Doing a simple HTML conversion would be easy in a shell script, but getting MIME attachments right sounds very difficult.
0
 
howesdAuthor Commented:
That's backing up what I thought I suppose .... do you have any recommendations of commercial systems?
0
 
chris_calabreseCommented:
The following have web-based mail subsystems or add-ons:

ccMail
Notes-mail
GroupWise
Netscape/iPlanet Messaging Server
Exchange with MS Outlook Web Access


Also note that most web-browsers have integrated capabilities to deal with POP3 and IMAP, so if you you don't actually need HTTP mail, you can use any mail system that supports these.  This would include:

All of the above
The Mirapoint mail appliance
The commercial version of Sendmail
The free version of Sendmail with a third-party POP/IMAP server (also possibly free).
0
 
Kris_JohnsonCommented:
IF YOU WISH TO USE PHP AND SENDMAIL IT SHOULD LOOK LIKE THIS AT THE BEGINING:


$message = "<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN><html><head><title>Hawaii Document</title><META http-equiv=Content-Type content='text/html; charset=iso-8859-1'></head><body><center><img src = http://205.51.189.94/hgvc/email/eskimo.gif
 width = 400px height = 140px></center>\r\n<br>";

YOUR TEXT MESSAGE HERE:
$message .= "Your text message";

YOUR FROM LIKE THIS:
$from = "From: someone@somewhere.org\r\n Content-Type: text/html; charset = iso-8859-1\r\n"

YOUR DESTINATION LIKE THIS:

$to = "joebob@joebob.com";

YOUR SUBJECT LIKE THIS:
$sub = "enlarge a body part";

SEND IT LIKE THIS:
mail($to, $sub, $message, $from);

BEWARE 1--IF YOU HAVE A LOT OF TEXT ADD '\r\n' IN FRONT OF ANY '<br>' OR ELSE MS IE WILL RANDOMLY PLACE AN '!' SOMEWHERE IN YOUR TEXT WHEN SOMEONE VIEWS YOUR MESSAGE.

BEWARE 2--HOTMAIL(S**KS) HOTMAIL WILL RECJECT YOUR MESSAGE IF A BUTTERFLY FLAPS IT'S WINGS IN BRAZIL. I MYSELF FIND THIS EXTREMELY FRUSTRATING I HAVE A LIST OF 2500 CUSTOMERS AND HAVE OFTEN HAD HOTMAIL SIMPLY DROP A MESSAGE NO BOUNCE BACK NO NOTICE. IF YOU HAVE A RELATIVELY SMALL AMOUNT OF HOTMAIL ADDRESSES TO COVER YOU CAN BUILD AN ARRAY OF OUTLOOK MESSAGE ID'S BY EMAILING TO YOURSELF AND COPYING TO YOUR EMAIL RPOGRAM THIS WILL HELP FAKE OUT THEIR SPAM FILTERS AS THEY SEEM TO LIKE MESSAGES FROM OUTLOOK, I WONDER WHY?
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now