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