svn:eol-style set to 'native'
[mailer.git] / inc / phpmailer / examples / pop3_before_smtp_test.php
index 794b2a2674133e25d4ee9d9525446e2431d1eeee..b10b5e151d717992e566ccb2ec1cf35cbb1280d4 100644 (file)
@@ -1,39 +1,39 @@
-<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
+<html>
+<head>
+<title>POP before SMTP Test</title>
+</head>
+
+<body>
+
+<pre>
+<?php
+  require 'class.phpmailer.php';
+  require 'class.pop3.php';
+
+  $pop = new POP3();
+  $pop->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;
+  }
+?>
+</pre>
+
+</body>
+</html>