Reputation: 263
I'm trying to learn how emails works.
I have a form in an HTML, and a PHP script that sends that email here is my php code, hardcoded just for testing:
$for = '[email protected]';
$title = 'Some Title';
$msg = 'Some text';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($for, $title, $msg, $headers);
So, I have bought a "hosting" for my site, using CPanel And I want to send the information of the users that fill my contact form to my own email.
But It isn't working, so I went to "Email Trace" on Cpanel and I got this error:
"587 X=TLSv1.2:DHE-RSA-AES256-SHA:256 CV=no DN="/L=Cluster/O=anti-spam-premium.com/OU=Domain/CN=fs.anti-spam-premium.com/[email protected]": SMTP error from remote mail server after end of data: 550 Subject con"
What do I must setup in CPanel?
Any idea?
Upvotes: 0
Views: 577
Reputation: 3098
I'm not very familiar with CPanel's email trace but if the error code you get is that 550 I'm seeing then these SMTP Error messages concern the recipient's email address.
They usually define a non-existent email address on the remote side. Though it can be returned also by the recipient's firewall (or when the incoming server is down), the great majority of errors 550 simply tell that the recipient email address doesn't exist. You should contact the recipient otherwise and get the right address or just try another to be sure.
Also check that your server's IP isn't on any international spam blocklist.
Upvotes: 1