Re: why is this mail code not working on a windows server?
| From: | Per Christian | Date: | Sat, 22 Feb 2003 13:59:10 +0000 |
| Subject: | Re: why is this mail code not working on a windows server? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18670@lists.php.net to get a copy of this message | ||
It does not look like you have set the SMTP-port in the code you use
below...
Try to set the port too and see if that helps
Best Regards,
Per Christian
"Cathy" <hoofdpijn2000@vt4.net> skrev i melding
news:20030221184232.43150.qmail@pb1.pair.com...
> Hi,
> I'm getting rather desperate about this one.
>
> Code below is working fine on one server: Apache 1.3.26 /PHP 4.1.2/Linux.
> On another server (Apache 1.3.24/PHP 4.3.1/Windows 2000) I get keeping
this
> error:
>
> Failed to connect to mailserver at "smtp.vt4.net" port 25, verify your
> "SMTP" and "smtp_port" setting in php.ini or use ini_set() in
> c:\oracle\ora91\apache\apache\htdocs\templateprobeersel\tmp47v15anqr5.php
on
> line 16
>
> CODE:
>
> $headers.="From:me@vt4.net\n";
> ini_set("SMTP", "smtp.vt4.net");
> ini_set("sendmail_from","me@vt4.net");
>
> mail("me@vt4.net", "test php", "Line 1",$headers);
>
> Can anyone help me?
> Thx,
> Cathy
>
>