I need to modify the headers of mail to have look like it's being sent from an external address.
I have problem in sending mail from same domain. For example,
A([email protected])
send mail to B([email protected])
When A send mail to B. B is not able to get mail because of same domain issue. I spent lots of time but nothing helps. Somehow i find that modifying header I can achieve my solution. Here i find little bit solution link. But I don't know how to modify it.
I try something like:
$mail->setFrom('[email protected]', ucfirst($sende_name[0]));
$mail->Sender='[email protected]';
But nothing helps.
Any help please.