Pero correos como yahoo, gmail, hotmail no funciona .
Aqui el codigo de php
Código PHP:
<?php
$CorreoTienda= "[email protected]";
$asunto = "Prueba de correo";
$cuerpo = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PRUEBA</title>
</head>
<body>
<p>Prueba de correo</p>
</body>
</html>';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: correo<[email protected]>\r\n";
mail($CorreoTienda,$asunto,$cuerpo,$headers);
?>
Código:
Gracias [mail function] ; For Win32 only. ; http://www.php.net/manual/en/mail.configuration.php#ini.smtp SMTP = 192.168.0.207 ; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port smtp_port = 25 ; For Win32 only. ; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from sendmail_from = [email protected] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path sendmail_path = /usr/sbin/sendmail -t -i ; 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 = ; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename mail.add_x_header = On ; Log all mail() calls including the full path of the script, line #, to address and headers ;mail.log =