Click to See Complete Forum and Search --> : RedHat SENDMAIL in HTML Format


Lozzi
10-26-2007, 10:47 AM
Howdy,

Anyone know how to use the SENDMAIL function in redHat to send emails in HTML format?

Thanks,
David Lozzi

Stephen Philbin
10-27-2007, 06:30 PM
You mean using the program called "Sendmail" or do you mean some other feature of the OS? I've never udsed Redhat before.

BrainDonor
10-30-2007, 01:15 PM
I've done this in Unix...but never tried in Linux. Not sure if the functionality is the same. Here's a basic example...hope it works for you.


(
echo "From: me@xyz.com "
echo "To: them@xyz.com "
echo "MIME-Version: 1.0"
echo "Content-Type: multipart/alternative; "
echo ' boundary="PAA08673.1018277622/server.xyz.com"'
echo "Subject: Test HTML e-mail."
echo ""
echo "This is a MIME-encapsulated message"
echo ""
echo "--PAA08673.1018277622/server.xyz.com"
echo "Content-Type: text/html"
echo ""
echo "<html>
<head>
<title>HTML E-mail</title>
</head>
<body>
<a href='http://www.google.com'>Click Here</a>
</body>
</html>"
echo "--PAA08673.1018277622/server.xyz.com"
) | sendmail -t