I am using the PHP mail() function to send e-mail. I am able to receive mail sent from my web app at an e-mail from the same domain (e.g. if my web app is on mywebsite.com, I can only receive emails from the app from the address me@mywebsite.com). I have tried to send mail to two Gmail addresses and an Outlook address and it is not getting received.
Here's my mail function:
mail($email, "Subject", $message, "From: somebody@mywebsite.com\r\nContent-type: text/html; charset=iso-8859-1");
Thanks for the help!