GOOGLE
<?php
require 'PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->isSMTP();
$mail->SMTPAuth = true;
// Edit the lines with comments.
$mail->Host = 'mail.airinfotech.in'; // Specify main and backup SMTP servers
$mail->Username = 'crmsupport@airinfotech.in'; // Provide Email User Name
$mail->Password = 'aircrm!@#'; // Provide Email Password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
$mail->setFrom('webadmin@airinfotech.in', 'Test User'); // Set From Name
$mail->addAddress('ankits.air@gmail.com'); // Add a recipient
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
if(!$mail->send())
{
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
}
else
{
echo 'Message has been sent';
}
Copyright © 1945 -