X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fphpmailer%2Fexamples%2Ftest_gmail.php;h=553976f76f3ed72c684ecebed226dd123e43203c;hb=3c311675e341584ad25c561a5a65198f3717125f;hp=9b951f869574ae3cdd2deeaf74a5fa30a7a60503;hpb=dbe56bb043ba16ca1ec1e9efa9effdc1f0612261;p=mailer.git
diff --git a/inc/phpmailer/examples/test_gmail.php b/inc/phpmailer/examples/test_gmail.php
index 9b951f8695..553976f76f 100644
--- a/inc/phpmailer/examples/test_gmail.php
+++ b/inc/phpmailer/examples/test_gmail.php
@@ -1,45 +1,45 @@
-getFile('contents.html');
-$body = eregi_replace("[\]",'',$body);
-
-$mail->IsSMTP();
-$mail->SMTPAuth = true; // enable SMTP authentication
-$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
-$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
-$mail->Port = 465; // set the SMTP port for the GMAIL server
-
-$mail->Username = "yourusername@gmail.com"; // GMAIL username
-$mail->Password = "yourpassword"; // GMAIL password
-
-$mail->AddReplyTo("yourusername@gmail.com","First Last");
-
-$mail->From = "name@yourdomain.com";
-$mail->FromName = "First Last";
-
-$mail->Subject = "PHPMailer Test Subject via gmail";
-
-//$mail->Body = "Hi,
This is the HTML BODY
"; //HTML Body
-$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
-$mail->WordWrap = 50; // set word wrap
-
-$mail->MsgHTML($body);
-
-$mail->AddAddress("whoto@otherdomain.com", "John Doe");
-
-$mail->AddAttachment("images/phpmailer.gif"); // attachment
-
-$mail->IsHTML(true); // send as HTML
-
-if(!$mail->Send()) {
- echo "Mailer Error: " . $mail->ErrorInfo;
-} else {
- echo "Message sent!";
-}
-
-?>
+getFile('contents.html');
+$body = eregi_replace("[\]",'',$body);
+
+$mail->IsSMTP();
+$mail->SMTPAuth = true; // enable SMTP authentication
+$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
+$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
+$mail->Port = 465; // set the SMTP port for the GMAIL server
+
+$mail->Username = "yourusername@gmail.com"; // GMAIL username
+$mail->Password = "yourpassword"; // GMAIL password
+
+$mail->AddReplyTo("yourusername@gmail.com","First Last");
+
+$mail->From = "name@yourdomain.com";
+$mail->FromName = "First Last";
+
+$mail->Subject = "PHPMailer Test Subject via gmail";
+
+//$mail->Body = "Hi,
This is the HTML BODY
"; //HTML Body
+$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
+$mail->WordWrap = 50; // set word wrap
+
+$mail->MsgHTML($body);
+
+$mail->AddAddress("whoto@otherdomain.com", "John Doe");
+
+$mail->AddAttachment("images/phpmailer.gif"); // attachment
+
+$mail->IsHTML(true); // send as HTML
+
+if(!$mail->Send()) {
+ echo "Mailer Error: " . $mail->ErrorInfo;
+} else {
+ echo "Message sent!";
+}
+
+?>