--- /dev/null
+<html>\r
+<head>\r
+<title>POP before SMTP Test</title>\r
+</head>\r
+\r
+<body>\r
+\r
+<pre>\r
+<?php\r
+ require 'class.phpmailer.php';\r
+ require 'class.pop3.php';\r
+\r
+ $pop = new POP3();\r
+ $pop->Authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1);\r
+\r
+ $mail = new PHPMailer();\r
+\r
+ $mail->IsSMTP();\r
+ $mail->SMTPDebug = 2;\r
+ $mail->IsHTML(false);\r
+\r
+ $mail->Host = 'relay.example.com';\r
+\r
+ $mail->From = 'mailer@example.com';\r
+ $mail->FromName = 'Example Mailer';\r
+\r
+ $mail->Subject = 'My subject';\r
+ $mail->Body = 'Hello world';\r
+ $mail->AddAddress('name@anydomain.com', 'First Last');\r
+\r
+ if (!$mail->Send())\r
+ {\r
+ echo $mail->ErrorInfo;\r
+ }\r
+?>\r
+</pre>\r
+\r
+</body>\r
+</html>\r