I've created a page in which I send an email.
I use PostCast server and I have cnfigured all the settings correctly. (smtp port, php.ini etc.)
However when I send an emai it is considered as spam. The mail cannot be sent to gmail, hotmail or yahoo servers as it is blocked (possible spam). But it's sent to my school's server with a warning for possible spam.
here's the code of the page:
<?php $to = '[email protected]'; $subject = 'xaxaxa'; $message = 'hello sflkmslfmsdfmsdlkfmsldmflskdmfldsf'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); If (mail($to, $subject, $message, $headers)) echo"yoooo"; else "malakia egine"; ?>
Are there any functions that will help me avoiding all those things?
Thanks in advance.