emailcolor.php
<?php
$to = 'abcr@def.net' . ',';
$to .= abc@mno.com';
$subject = 'Test HTML in
email';
$message = '
<html>
<head>
<title>Testing HTML
send in email</title>
</head>
<body bgcolor =
"beige">
<p>This is a
test</font></p>
<ul>
<li>Item #1</li>
<li>Item #2</li>
<li>Item #3</li>
</ul>
</body>
</html>
';
$headers = 'MIME-Version:
1.0' . "\r\n";
$headers .= 'Content-type:
text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'To: Test <aaa@aaa.com>'
. "\r\n";
$headers .= 'From: Me bbb@bbb.com>'
. "\r\n";
$headers .= 'Cc: Copy<ccc@ccc.com>'
. "\r\n";
mail($to, $subject, $message,
$headers);
echo "Mail sent to
$to";
?>
emailcolorcss.php
<?php
$to = 'ddd@ddd.net' . ',';
$to .= eee@eee.com';
$subject = 'Test HTML in
email';
$message = '
<html>
<head>
<title>Testing HTML
send in email</title>
<style
type="text/css">
body {
background-color: beige;
color: green;
}
</style>
</head>
<body>
<p>This is a
test</font></p>
<ul>
<li>Item #1</li>
<li>Item #2</li>
<li>Item #3</li>
</ul>
</body>
</html>
';
$headers = 'MIME-Version:
1.0' . "\r\n";
$headers .= 'Content-type:
text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'To: Test <fff@fff.com>'
. "\r\n";
$headers .= 'From: Me <ggg@ggg.com>'
. "\r\n";
$headers .= 'Cc: Copy<hhh@hhh.com>'
. "\r\n";
mail($to, $subject, $message,
$headers);
echo "Mail sent to
$to";
?>
testimage.php
<?php
$to = "iii@iii.net"
. ",";
$to .= "jjj@jjj.com";
$subject = "Test HTML in
email";
$words = "
<html>
<head>
<title>Testing HTML
send in email</title>
</head>
<body>
<p>This is a test using
double quotes</p>
<ul>
<li>Item #1</li>
<li>Item #2</li>
<li>Item #3</li>
</ul>
<p>This is an
image:<br>
<img
src='http://www.pgrocer.net/Cis44/XHTML/images/CISa.gif'>
</p>
</body>
</html>
";
$msgPic= '<img
src="http://www.pgrocer.net/Cis44/XHTML/images/CISa.gif">';
$message = $words . $msgPic;
$headers =
"MIME-Version: 1.0" . "\r\n";
$headers .=
"Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers .= "To: Test
<aaa@aaa.com>" . "\r\n";
$headers .= "From: Me
<bbb@bbb.com>" . "\r\n";
$headers .= "Cc:
Copy<ccc@ccc.net>" . "\r\n";
mail($to, $subject, $message,
$headers);
echo "Mail sent to
$to";
?>
testimage1.php
<?php
$to = "abc@abc.net"
. ",";
$to .= "def@ghi.com";
$subject = "Test HTML in
email";
$words = '
<html>
<head>
<title>Testing HTML
send in email</title>
</head>
<body>
<p>This is a test using
double quotes</p>
<ul>
<li>Item #1</li>
<li>Item #2</li>
<li>Item #3</li>
</ul>
<p>This is an
image:<br>
<img
src="http://www.pgrocer.net/Cis44/XHTML/images/CISa.gif">
</p>
</body>
</html>
';
$msgPic= '<img
src="http://www.pgrocer.net/Cis44/XHTML/images/CISa.gif">';
$message = $words . $msgPic;
$headers =
"MIME-Version: 1.0" . "\r\n";
$headers .=
"Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers .= "To: Test
<jkl@mno.com>" . "\r\n";
$headers .= "From: Me
<qrs@tuv.com>" . "\r\n";
$headers .= "Cc:
Copy<wxy@zzz.net>" . "\r\n";
mail($to, $subject, $message,
$headers);
echo "Mail sent to
$to";
?>