I need to send mail using PHP Mailer.
Mail is sending but not received in gmail. In phpmailer folder i have 3 files: class.phpmailer.php, class.smtp.php, PHPMailerAutoload.php
require 'phpmailer/PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->isSMTP();
$mail->Host='smtp.gmail.com';
$mail->Port=587;
$mail->SMTPAuth=true;
$mail->SMTPSecure='tls';
$mail->Username='[email protected]';
$mail->Password='password';
$mail->setFrom('[email protected]','Company');
$mail->addAddress('[email protected]');
$mail->addReplyTo('[email protected]');
$mail->isHTML(true);
$mail->Subject='New Form Submission';
$mail->Body='<h1>Hello</h1>';
header("Location: ../123.php");