Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require("class.phpmailer.php");
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->Host = "smtp.office365.com";
- $mail->SMTPSecure = "STARTTLS";
- $mail->Port = 587;
- $mail->SMTPAuth = false;
- $mail->Username = "info@vestianglobal.com";
- $mail->Password = "{email_password_kept_confidential}";
- $mail->From = "info@vestianglobal.com";
- $mail->FromName = "Test from Info";
- $mail->AddAddress("manikandan@odigma.com");
- $mail->IsHTML(true);
- $mail->Subject = "Test message from server";
- $mail->Body = "Test Mail<b>in bold!</b>";
- if(!$mail->Send())
- {
- echo "Message could not be sent. <p>";
- echo "Mailer Error: " . $mail->ErrorInfo;
- exit;
- }
- echo "Message has been sent";
- ?>
Add Comment
Please, Sign In to add comment