[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = [email protected]
envio.php
Código PHP:
<?php
$paraquien = "[email protected]";
$titulo = "hola";
$mensaje = "hola como andas!";
$headers = "From: flashtkd@localhost\r\n"; // te faltaba ésto.
mail($paraquien,$titulo,$mensaje,$headers);
?>
No envia nada
5.7.1 http://mail.google.com/support/bin/a...y?answer=10336 c20si4155081rvf.1
23:19:51 [2] Conectando con alt2.gmail-smtp-in.l.google.com
23:20:06 [3] Error 5.7.1 [201.215.193.110] The IP you're using to send mail is not authorized
5.7.1 to send email directly to our servers. Please use the SMTP
5.7.1 relay at your service provider instead. Learn more at
5.7.1 http://mail.google.com/support/bin/a...y?answer=10336 c20si2331292rvf.1
23:20:06 [3] Conectando con alt2.gmail-smtp-in.l.google.com