Article View: chile.comp.programacion
Article #3653Mail en PHP
From: Rick_oj
Date: Mon, 06 Dec 2004 15:41
Date: Mon, 06 Dec 2004 15:41
30 lines
1773 bytes
1773 bytes
que debo configurar en el php.ini para que me permita enviar mail, me envia
el siguiente error y he chequeado y tengo todo lo que dice
Warning: 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:\Apache2\htdocs\pruebas\enviar.php on line 6
<?
$destino=$_POST['destino'];
$asunto=$_POST['asunto'];
$mensaje=$_POST['mensaje'];
if($destino!=""){
mail($destino, $asunto, $mensaje);
echo "Se ha enviado el mensaje a $destino correctamente!";
}
else{
echo "Debes escribir un destinatario vοΏ½lido para enviar el email";
}
?>
aca mi php.ini
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only
smtp_port = 25
sendmail_from= mailmaster@localhost.com; for Win32 only
se agradecen ayuda le pego poco a las configuraciones del php, tengo un
firewall pero no es eso ya que me envia el mismo error con este apagado
Technical Details
Message-ID:
<cp1ubc$it6$1@news1.nivel5.cl>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,25b5d420e0fd07fc,start X-Google-Attributes: gid1593cb,public X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail From: "Rick_oj" <rick_oj@servidor.red> Newsgroups: chile.comp.programacion Subject: Mail en PHP Date: Mon, 6 Dec 2004 12:41:10 -0300 Organization: Varios Lines: 32 Message-ID: <cp1ubc$it6$1@news1.nivel5.cl> NNTP-Posting-Host: cm-vina4-157-154.cm.vtr.net X-Trace: news1.nivel5.cl 1102347436 19366 200.104.157.154 (6 Dec 2004 15:37:16 GMT) X-Complaints-To: news@news1.nivel5.cl NNTP-Posting-Date: Mon, 6 Dec 2004 15:37:16 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441