I'm trying to send an email from no-reply@{domain} to my Gmail mailbox. I don't get any Error, the Email just doesn't arrive at my Gmail mailbox.
My PHP code looks like this:
<?php mail('johndoe@gmail.com', 'Test Email', 'Hello World', 'From: John Doe <no-reply@{domain}>'); ?>
I've set the php.ini like this:
[mail function]
SMTP=mail.{domain}
smtp_port=25
sendmail_from=no-reply@{domain}
mail.add_x_header=Off
And in the DNS settings of my domain, I have an MX @ 10 mail.{domain}
entry.
I don't know if that's important, but I have hMailServer installed. Recieving Emails works already.