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" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]";
> ini_set("SMTP", "smtp.vt4.net");
> ini_set("sendmail_from","[EMAIL PROTECTED]");
>
> mail("[EMAIL PROTECTED]", "test php", "Line 1",$headers);
>
> Can anyone help me?
> Thx,
> Cathy
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to