AW: [PHP-WIN] Re: why is this mail code not working on a windows server?
| From: | (Sven Schnitzke) | Date: | Tue, 25 Feb 2003 10:32:01 +0000 |
| Subject: | AW: [PHP-WIN] Re: why is this mail code not working on a windows server? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18694@lists.php.net to get a copy of this message | ||
Hi,
specify "SMTP" as just the part after the @ in the mail address, e.g vt4.net
in your case. Then it should work.
Cheers,
--
Sven
> -----Ursprüngliche Nachricht-----
> Von: Per Christian [SMTP:perchristian@myself.online.no]
> Gesendet am: Samstag, 22. Februar 2003 14:59
> An: php-windows@lists.php.net
> Betreff: [PHP-WIN] Re: why is this mail code not working on a windows server?
>
> 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
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>