Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "Testing Class PHPmail 3";
- require("class.phpmailer.php");
- $mail = new PHPMailer();
- $mail->SMTPDebug = 1; // Enable verbose debug output
- $mail->isSMTP();
- $mail->Host = "relay-hosting.secureserver.net";
- $mail->Port = 25;
- $mail->SMTPSecure = "none";
- $mail->SMTPAuth = false;
- $mail->Username = "";
- $mail->Password = "";
- $mail->From = "info@sa3at-soujoud.com";
- $mail->AddAddress("info@luxurylebanon.com");
- $mail->Subject = "First PHPMailer Message";
- $mail->Body = "Hi! nn This is my first e-mail sent through PHPMailer.";
- $mail->WordWrap = 50;
- if(!$mail->Send()) {
- echo 'Message was not sent.';
- echo 'Mailer error: ' . $mail->ErrorInfo;
- } else {
- echo 'Message has been sent.';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement