mail function error

Im connecting thru ISP so it's not local server connection.

My PHP.INI
***********************************
[mail function]
; For Win32 only.
SMTP = mail.myDomain.com
smtp_port = 25

; For Win32 only.
sendmail_from = localhost [at] testme.com
************************************

I get error:
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


Why is he trying to connect to localhost ?
John [ Mi, 10 Januar 2007 14:52 ] [ ID #1591150 ]

Re: mail function error

John schreef:
> Im connecting thru ISP so it's not local server connection.
>
> My PHP.INI
> ***********************************
> [mail function]
> ; For Win32 only.
> SMTP = mail.myDomain.com
> smtp_port = 25
>
> ; For Win32 only.
> sendmail_from = localhost [at] testme.com
> ************************************
>
> I get error:
> 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
>
>
> Why is he trying to connect to localhost ?
>
>
Did you restart apache ?

--
Arjen
http://www.hondenpage.com
Dave Williams [ Mi, 10 Januar 2007 15:03 ] [ ID #1591151 ]

Re: mail function error

"Arjen" <dont [at] mail.me> wrote in message news:eo2ro7$m07$1 [at] brutus.eur.nl...
> John schreef:
> > Im connecting thru ISP so it's not local server connection.
> >
> > My PHP.INI
> > ***********************************
> > [mail function]
> > ; For Win32 only.
> > SMTP = mail.myDomain.com
> > smtp_port = 25
> >
> > ; For Win32 only.
> > sendmail_from = localhost [at] testme.com
> > ************************************
> >
> > I get error:
> > 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
> >
> >
> > Why is he trying to connect to localhost ?
> >
> >
> Did you restart apache ?
*****************************************************
Yes ... but the situation is the same...
John [ Mi, 10 Januar 2007 16:38 ] [ ID #1591156 ]

Re: mail function error

John wrote:
> Im connecting thru ISP so it's not local server connection.
>
> My PHP.INI
> ***********************************
> [mail function]
> ; For Win32 only.
> SMTP = mail.myDomain.com
> smtp_port = 25
>
> ; For Win32 only.
> sendmail_from = localhost [at] testme.com
> ************************************
>
> I get error:
> 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
>
>
> Why is he trying to connect to localhost ?

This setting is for windows only. Are you windows or *nix?

Gvre
Giannis Vrentzos [ Mi, 17 Januar 2007 20:48 ] [ ID #1598908 ]
PHP » alt.php » mail function error

Vorheriges Thema: auto_prepend_file not working with apache 2.2, windows xp and ph
Nächstes Thema: MySQL Backup