X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;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=2230a2e7e09b6b47fe3d68181a28a4435c1732e6;hp=0000000000000000000000000000000000000000;hpb=4365745a3952764d684556852c31d0e8cba5e58e;p=mailer.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 0000000000..794b2a2674 --- /dev/null +++ b/inc/classes/third_party/php_mailer/examples/pop3_before_smtp_test.php @@ -0,0 +1,39 @@ + + +POP before SMTP Test + + + + +
+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;
+  }
+?>
+
+ + +