inadim8956
Member
- Messages
- 107
- Reaction score
- 0
- Points
- 16
I have tried to send mail using the php mail() function, and I added a test case as follows:
and the output is "Mail Sent", yet I receive nothing on the email specified in the $to variable!!
I want to know what is wrong. And I`m sure that there is nothing wrong with my code as I have been working with it for a while on other free servers.
PHP:
$mail_sent = mail( $to, $subject, $message, $headers );
echo $mail_sent ? "Mail sent" : "Mail failed";
and the output is "Mail Sent", yet I receive nothing on the email specified in the $to variable!!
I want to know what is wrong. And I`m sure that there is nothing wrong with my code as I have been working with it for a while on other free servers.