Username
epiz_27284818
http://finoreminerals.com/
(please specify the website or account you are asking about)
I am using PHP mailer still my mail is not going it is linked with the SMTP account
PFA THE CODE FOR THE SAME
<?php
if(isset($_POST['submit'])){
require "PHPMailer/PHPMailerAutoload.php";
function smtpmailer($to, $from, $from_name, $subject, $body)
{
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->Host = 'smtp.gmail.com';
$mail->Port = 465;
$mail->Username = 'videoeditsagehill@gmail.com';
$mail->Password = '';
// $path = 'reseller.pdf';
// $mail->AddAttachment($path);
$mail->IsHTML(true);
$mail->From="noreply@gmail.com";
$mail->FromName=$from_name;
$mail->Sender=$from;
$mail->AddReplyTo($from, $from_name);
$mail->Subject = $subject;
$mail->Body = $body;
$mail->AddAddress($to);
if(!$mail->Send())
{
$error ="Please try Later, Error Occured while Processing...";
echo $error;
}
else
{
$error = "Thanks You !! Your email is sent.";
echo $error;
}
}
$to = 'ssahilaagiwal@gmail.com';
$from = 'noreply@gmail.com';
$name = 'Inquiry ';
$subj = "New Inquiry from ".$_POST['name'];
$msg = "Cleint name-: ".$_POST['name']."<br><br> Cleint Email-: ".$_POST['email']."<br><br> Cleint msg-: ".$_POST['msg'];
$error=smtpmailer($to,$from, $name ,$subj, $msg);
}
?>