I was trying to set from in php mailer (gmail smtp). But in inbox it shows from mygmailaccount@gmail.com. here is my code :
$this->_mail->Useame = "mygmailaccount@gmail.com";
//Password to use for SMTP authentication
$this->_mail->Password = 'mypassword';
$this->_mail->From="support@mydomain.com";
$this->_mail->FromName="Support Team";
//Set who the message is to be sent from
$this->_mail->setFrom('support@mydomain.com', 'Support Team',false);
But when i receive email in inbox its show from : mygmailaccount@gmail.com and i want to show from : support@mydomain.com
Can anyone help me to find out what i am missing.
Many Thanks
