A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / inc / classes / third_party / php_mailer / examples / pop3_before_smtp_test.php
1 <html>\r
2 <head>\r
3 <title>POP before SMTP Test</title>\r
4 </head>\r
5 \r
6 <body>\r
7 \r
8 <pre>\r
9 <?php\r
10   require 'class.phpmailer.php';\r
11   require 'class.pop3.php';\r
12 \r
13   $pop = new POP3();\r
14   $pop->Authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1);\r
15 \r
16   $mail = new PHPMailer();\r
17 \r
18   $mail->IsSMTP();\r
19   $mail->SMTPDebug = 2;\r
20   $mail->IsHTML(false);\r
21 \r
22   $mail->Host     = 'relay.example.com';\r
23 \r
24   $mail->From     = 'mailer@example.com';\r
25   $mail->FromName = 'Example Mailer';\r
26 \r
27   $mail->Subject  =  'My subject';\r
28   $mail->Body     =  'Hello world';\r
29   $mail->AddAddress('name@anydomain.com', 'First Last');\r
30 \r
31   if (!$mail->Send())\r
32   {\r
33     echo $mail->ErrorInfo;\r
34   }\r
35 ?>\r
36 </pre>\r
37 \r
38 </body>\r
39 </html>\r