Please find the code below. This code resides in mydomainname.com
mail("mymail@gmail.com,mymail@mydomainname.com","Testing mail","This is a test mail.","From: mymail@yahoo.com
");
and
mail("mymail@gmail.com,mymail@mydomainname.com","Testing mail","This is a test mail.","From: mymail@mydomainname.com
");
I am getting mail to my gmail account (or any yahoo account) for both code, but I am not receiving mail to my webmail or cPanel squirrelmail etc.
I can directly send email to this domain email account
Will the mail server of this domain prevents mails from same domain? The code worked earlier for the same domainname. Is it a problem with hosting side? It's a shared server.