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('[email protected]', '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.
I think it's the mailprotection from google self. Here you can get more information about it: https://support.google.com/mail/answer/81126?hl=en