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?