I'm using the PHPMailer library for sending emails. Everything is working just fine except for one small problem. I have a default gmail account that is used to most my clients as a SMTP Auth.
$mail->Host = 'ssl://smtp.gmail.com';
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = 'email@gmail.com';
$mail->Password = 'gmail**pass';
However, when I setup the FROM that it was supposed to use, it uses my GMAIL instead of the defined FROM as a reply-to and that never happened before. I thought it might be some php.ini
setting, but looking into the phpinfo()
, nothing caught my attention.
$mail->From = 'contact@client.com';
$mail->FromName = 'Client Name';
Does anyone have any idea what that might be?