Here is my php.ini:
...
[mail function]
; For Win32 only.
; [
php.net]
SMTP = mail.nogueras.cat
; [
php.net]
smtp_port = 25
...
I just have tried to send directly an e-mail from a PHP sender and it returns this error:
Warning: mail() [function.mail]: SMTP server response: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) in K:\Documents\Web\Practica\sendmail1.php on line 10
The sendmail1.php code:
<?php
$to="maxx4848@gmail.com";
$subject="Formulario de contacto";
$message="Esto es una prueba a ver si funciona el PHP directamente";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: Des de EasyPHP" . "\r\n";
mail($to, $subject, $message, $headers);
?>