I'm having problems sending a mail through php. I've already set in php.ini SMTP:
SMTP = xx.xxx.xxx.xx
smtp_port = 25
And I'm in php to send an email with the following code:
// Set up parameters
$to = "xpto.87@gmail.com";
$subject = "Title";
$message = "Hello world";
// Send email
$mail = mail($to,$subject,$message);
// Inform the user
if($mail == true)
echo "send mail";
else
echo "dont send";
What do I get and always a "dont send", and i dont know why. Anybody can help me please?