X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fthird_party%2Fphp_mailer%2Fexamples%2Fpop3_before_smtp_test.php;fp=inc%2Fclasses%2Fthird_party%2Fphp_mailer%2Fexamples%2Fpop3_before_smtp_test.php;h=794b2a2674133e25d4ee9d9525446e2431d1eeee;hb=ae8c9d10c748844aa9f61cba52491f344df11086;hp=0000000000000000000000000000000000000000;hpb=4c35e8280767c1e33832097060e39a32b80ffd01;p=shipsimu.git diff --git a/inc/classes/third_party/php_mailer/examples/pop3_before_smtp_test.php b/inc/classes/third_party/php_mailer/examples/pop3_before_smtp_test.php new file mode 100644 index 0000000..794b2a2 --- /dev/null +++ b/inc/classes/third_party/php_mailer/examples/pop3_before_smtp_test.php @@ -0,0 +1,39 @@ + +
++Authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1); + + $mail = new PHPMailer(); + + $mail->IsSMTP(); + $mail->SMTPDebug = 2; + $mail->IsHTML(false); + + $mail->Host = 'relay.example.com'; + + $mail->From = 'mailer@example.com'; + $mail->FromName = 'Example Mailer'; + + $mail->Subject = 'My subject'; + $mail->Body = 'Hello world'; + $mail->AddAddress('name@anydomain.com', 'First Last'); + + if (!$mail->Send()) + { + echo $mail->ErrorInfo; + } +?> ++ + +