X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=0.2.1%2Finc%2Fphpmailer%2Fexamples%2Ftest1.php;h=809382894fa9ef5b43c7f3a73b6cd39c961b92ed;hb=7bc25dd08431c94ce9edca131d56c1a36b13c28a;hp=063c2c7f9efe4d2da76217da71272432cdb2e29f;hpb=157ee010917df5ca07e6d31b42f67417b2516d74;p=mailer.git diff --git a/0.2.1/inc/phpmailer/examples/test1.php b/0.2.1/inc/phpmailer/examples/test1.php index 063c2c7f9e..809382894f 100644 --- a/0.2.1/inc/phpmailer/examples/test1.php +++ b/0.2.1/inc/phpmailer/examples/test1.php @@ -1,28 +1,28 @@ -getFile('contents.html'); - -$body = eregi_replace("[\]",'',$body); - -$mail->From = "name@yourdomain.com"; -$mail->FromName = "First Last"; - -$mail->Subject = "PHPMailer Test Subject"; - -$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test - -$mail->MsgHTML($body); - -$mail->AddAddress("whoto@otherdomain.com", "John Doe"); - -if(!$mail->Send()) { - echo 'Failed to send mail'; -} else { - echo 'Mail sent'; -} - -?> +getFile('contents.html'); + +$body = eregi_replace("[\]",'',$body); + +$mail->From = "name@yourdomain.com"; +$mail->FromName = "First Last"; + +$mail->Subject = "PHPMailer Test Subject"; + +$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test + +$mail->MsgHTML($body); + +$mail->AddAddress("whoto@otherdomain.com", "John Doe"); + +if(!$mail->Send()) { + echo 'Failed to send mail'; +} else { + echo 'Mail sent'; +} + +?>