πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3655

Re: Mail en PHP

#3655
From: drilox
Date: Mon, 06 Dec 2004 17:21
40 lines
2093 bytes
tienes un servidor SMTP en esa misma maquina? Cual es ?

Salu2


"Rick_oj" <rick_oj@servidor.red> wrote in message
news:cp1ubc$it6$1@news1.nivel5.cl...
> 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: <cp251q$rdp$1@spawn.telmexchile.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!cyclone.bc.net!nntp-server.pubsub.com!news1.nivel5.cl!news.cec.uchile.cl!news.telmexchile.cl!not-for-mail
References: <cp1ubc$it6$1@news1.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,25b5d420e0fd07fc
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!cyclone.bc.net!nntp-server.pubsub.com!news1.nivel5.cl!news.cec.uchile.cl!news.telmexchile.cl!not-for-mail
From: "drilox" <cocodrilo60.NO@SPAM.hotmail.com>
Newsgroups: chile.comp.programacion
Subject: Re: Mail en PHP
Date: Mon, 6 Dec 2004 14:21:13 -0300
Organization: Telmex Chile
Lines: 42
Message-ID: <cp251q$rdp$1@spawn.telmexchile.cl>
References: <cp1ubc$it6$1@news1.nivel5.cl>
NNTP-Posting-Host: 200.27.50.34
X-Trace: spawn.telmexchile.cl 1102354298 28089 200.27.50.34 (6 Dec 2004 17:31:38 GMT)
X-Complaints-To: usenet@rdc.cl
NNTP-Posting-Date: Mon, 6 Dec 2004 17:31:38 +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