You are here: Re: Mailserver error in PHP question « All PHP « IT news, forums, messages
Re: Mailserver error in PHP question

Posted by Joseph Melnick on 09/18/05 04:11

Hello Rhonda, You Wrote:
"Rhonda" <nomailplease@yahoo.com> wrote in message
news:BAXWe.10827$Ma.2618@fe07.lga...
>I have been using a PHP form processing script that emails us submitted
> forms. It has been working great for months when suddenly users receive
> this error. We have changed nothing.
>
> Warning: mail() [function.mail]: Failed to connect to mailserver at
> "127.0.0.1" port 25, verify your "SMTP" and "smtp_port" setting in php.ini
> or use ini_set() in c:\users\sitedata\domain\web\scripts\form_proc.php on
> line 385
>
> I just needed an opinion as to what may be the cause. It looks like its
> an
> issue with my web hosting co's mail server possibly. Seanic.net isn't
> quick
> to respond to tech support requests.
>
> Any suggestions appreciated.
>
>

Your provider may may of overwritten PHP.INI and not set some important
default values.
Look at your PHP.INI and find this line:

[mail function]


If you are hosting on Windows then PHP.INI should have these lines set:

SMTP = localhost ; for Win32 only
smtp_port = 25
sendmail_from= administrator@yourhost.com ; for Win32 only

If you are hosting on a Linux system: you will probably using sendmail and
the line in this section should look like this

sendmail_path = "sendmail -t -i"

Joseph Melnick
JM Web Consultants
Toronto ON Canada

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация