Hi all, I've just added mail to my website hosted and the following is happening with mail:
- Email sent from private email (i.e. @gmail.com ) to @mydomain.com is received
- Email sent from PHP mail() to private mail is received
- Email sent from PHP mail() to @mydomain are NOT RECEIVED
I have the following default settings in php.ini:
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i
My script that I am testing with is very basic:
$to_address = "email@example.com";
$subject = "This goes in the subject line of the email!";
$message = "This is the body of the email.\n\n";
$headers = "From: firstname.lastname@example.org\r\n";
Is there a setting I need to change for this to work, or should be looking for?
I have checked junk mail and the mail is not being received there either.