Re: PHP: cannot configure SMTP_port....
| From: | CPT John W. Holmes | Date: | Thu, 19 Jun 2003 14:13:36 +0000 |
| Subject: | Re: PHP: cannot configure SMTP_port.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152162@lists.php.net to get a copy of this message | ||
> i am trying to send mail from a script, but i receive these error message:
>
> 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 c:\apacheserver\apache\htdocs\work-net\serial.php on
> line 295
>
> I have PHP + Apache + MySql and work in "localhost" on a win98 machine.
how
> can i set it?
Have you tried doing what the error message suggests? Setting the SMTP value
in php.ini or through ini_set()? I assume you're coming through some ISP and
do not have your own SMTP server running, so you'd set the SMTP settting in
php.ini to the SMTP server of your ISP.
---John Holmes...