i have a send mail problem i am using this code:
$to = 'fetta-@hotmail.com';
$subject = 'hi';
$message = 'hello';
$headers = 'From: fetta-@hotmail.com' . "\r\n" .
'Reply-To: fetta-@hotmail.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
it's not working i don't know why ... is it posibile thet the domain i am using is not alowing me to send mail's or what could it be.
php send mail problem
Moderator: General Moderators
Re: php send mail problem
Is mail() returning false? Are any errors logged or displayed? Have you checked your junk/spam folder? Have you tried a different address? Can you try a different server?
Re: php send mail problem
no i am not reciving any error , i have checked junk/spam , i have tryed other address , but i have not tryed other server,
is there any idea why i can't send mail from my server.
is there any idea why i can't send mail from my server.
Re: php send mail problem
If this is a Windows server, make sure that the "mail function" portion of the php.ini file is filled out.