Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\bdintra\equipos\correo.php on line 23
en la linea 23 tengo esto:
Código PHP:
if (mail($dest, "Comentarios", $msg, $head)) {
$aviso = "Su mensaje fue enviado.";
} else {
$aviso = "Error de envío.";
}
Código PHP:
$dest = "[email protected]";
$msg = "------------------------------- \n";
$msg.= " Comentarios \n";
$msg.= "------------------------------- \n";
$correo="[email protected]";
$head = "From: ".$correo."\r\n";
$head.= "To: [email protected]\r\n";
Código php.ini:
Ver original
[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. ;sendmail_from = [email][email protected][/email] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters =
soy nuevo en esto de enviar correos, por favor diganme que debo hacer?? gracias..!!