-<p>The example file "test1.php" contents include:</p>
-<div style="width: 600px; background-color: #CCCCCC;">
-<code>
-<?php<br>
-<br>
-include_once('../class.phpmailer.php');<br>
-<br>
-$mail = new PHPMailer();<br>
-<br>
-$body = $mail->getFile('contents.html');<br>
-<br>
-$body = eregi_replace("[\]",'',$body);<br>
-$subject = eregi_replace("[\]",'',$subject);<br>
-<br>
-$mail->From = "name@yourdomain.com";<br>
-$mail->FromName = "First Last";<br>
-<br>
-$mail->Subject = "PHPMailer Test Subject";<br>
-<br>
-$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test<br>
-<br>
-$mail->MsgHTML($body);<br>
-<br>
-$mail->AddAddress("whoto@otherdomain.com", "John Doe");<br>
-<br>
-if(!$mail->Send()) {<br>
- echo 'Failed to send mail';<br>
-} else {<br>
- echo 'Mail sent';<br>
-}<br>
-<br>
-?>
-</code>
-</div>
-<br>
-Although you could use full compabitility with PHPMailer 1.7.3, this example
-shows how to use the new features. If you view 'contents.html', you will note
-that there is a background image used in the <body tag as well as an image used
-with a regular <img tag. Here's what the HTML file looks like:<br>
-<br>
-<div style="width: 600px; background-color: #CCCCCC;">
-<code>
-<body background="images/bkgrnd.gif" style="margin: 0px;"><br>
-<div style="width: 640px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><br>
-<div align="center"><img src="images/phpmailer.gif" style="height: 90px; width: 340px"></div><br><br>
-<br><br>
- This is a test of PHPMailer v2.0.0 rc1.<br><br>
-<br><br>
-This particular example uses <strong>HTML</strong>, with a <div> tag and inline<br><br>
-styles.<br><br>
-<br><br>
-Also note the use of the PHPMailer at the top with no specific code to handle<br>
-including it in the body of the email.</div><br>
-</body><br>
-</code>
-</div>
-<br>
-A few things to notice in the PHP script that generates the email:
-<ul>
- <li>the use of $mail->AltBody is completely optional. If not used, PHPMailer
- will use the HTML text with htmlentities().</li>
- <li>the background= and <img src= images were processed without any directives
- or methods from the PHP script</li>
- <li>there is no specific code to define the image type ... that is handled
- automatically by PHPMailer when it parses the images</li>
- <li>we are using a new class method '$mail->MsgHTML($body)' ... that is what will handle the parsing of the images and creating the AltBody text</li>
-</ul>
-<p>Of course, you can still use PHPMailer the same way you have in the past.
-That provides full compatibility with all existing scripts, while new scripts
-can take advantage of the new features.</p>
-<p>Modify test1.php now with your own email address and try it out.</p>
-To see what the email SHOULD look like in your HTML compatible email viewer: <a href="contents.html">click here</a><br>
-
+<p>The example file "test_mail.php" contents include:</p>\r
+<div style="width: 600px; background-color: #CCCCCC;">\r
+<code>\r
+<?php<br>\r
+<br>\r
+include_once('../class.phpmailer.php');<br>\r
+<br>\r
+$mail = new PHPMailer();<br>\r
+<br>\r
+$body = $mail->getFile('contents.html');<br>\r
+<br>\r
+$body = eregi_replace("[\]",'',$body);<br>\r
+$subject = eregi_replace("[\]",'',$subject);<br>\r
+<br>\r
+$mail->From = "name@yourdomain.com";<br>\r
+$mail->FromName = "First Last";<br>\r
+<br>\r
+$mail->Subject = "PHPMailer Test Subject";<br>\r
+<br>\r
+$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test<br>\r
+<br>\r
+$mail->MsgHTML($body);<br>\r
+<br>\r
+$mail->AddAddress("whoto@otherdomain.com", "John Doe");<br>\r
+<br>\r
+if(!$mail->Send()) {<br>\r
+ echo 'Failed to send mail';<br>\r
+} else {<br>\r
+ echo 'Mail sent';<br>\r
+}<br>\r
+<br>\r
+?>\r
+</code>\r
+</div>\r
+<br>\r
+Although you could use full compabitility with PHPMailer 1.7.3, this example\r
+shows how to use the new features. If you view 'contents.html', you will note\r
+that there is a background image used in the <body tag as well as an image used\r
+with a regular <img tag. Here's what the HTML file looks like:<br>\r
+<br>\r
+<div style="width: 600px; background-color: #CCCCCC;">\r
+<code>\r
+<body background="images/bkgrnd.gif" style="margin: 0px;"><br>\r
+<div style="width: 640px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><br>\r
+<div align="center"><img src="images/phpmailer.gif" style="height: 90px; width: 340px"></div><br><br>\r
+<br><br>\r
+ This is a test of PHPMailer v2.0.0 rc1.<br><br>\r
+<br><br>\r
+This particular example uses <strong>HTML</strong>, with a <div> tag and inline<br><br>\r
+styles.<br><br>\r
+<br><br>\r
+Also note the use of the PHPMailer at the top with no specific code to handle<br>\r
+including it in the body of the email.</div><br>\r
+</body><br>\r
+</code>\r
+</div>\r
+<br>\r
+A few things to notice in the PHP script that generates the email:\r
+<ul>\r
+ <li>the use of $mail->AltBody is completely optional. If not used, PHPMailer\r
+ will use the HTML text with htmlentities().</li>\r
+ <li>the background= and <img src= images were processed without any directives\r
+ or methods from the PHP script</li>\r
+ <li>there is no specific code to define the image type ... that is handled\r
+ automatically by PHPMailer when it parses the images</li>\r
+ <li>we are using a new class method '$mail->MsgHTML($body)' ... that is what will handle the parsing of the images and creating the AltBody text</li>\r
+</ul>\r
+<p>Of course, you can still use PHPMailer the same way you have in the past.\r
+That provides full compatibility with all existing scripts, while new scripts\r
+can take advantage of the new features.</p>\r
+<p>Modify test_mail.php now with your own email address and try it out.</p>\r
+To see what the email SHOULD look like in your HTML compatible email viewer: <a href="contents.html">click here</a><br>\r
+\r