3 <title>POP before SMTP Test</title>
\r
10 require 'class.phpmailer.php';
\r
11 require 'class.pop3.php';
\r
14 $pop->Authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1);
\r
16 $mail = new PHPMailer();
\r
19 $mail->SMTPDebug = 2;
\r
20 $mail->IsHTML(false);
\r
22 $mail->Host = 'relay.example.com';
\r
24 $mail->From = 'mailer@example.com';
\r
25 $mail->FromName = 'Example Mailer';
\r
27 $mail->Subject = 'My subject';
\r
28 $mail->Body = 'Hello world';
\r
29 $mail->AddAddress('name@anydomain.com', 'First Last');
\r
33 echo $mail->ErrorInfo;
\r