php3-list | 199903

[PHP3] Re[2]: [PHP3] i can not use MAIL() function in WIN95!!!!!! From: Steve Edberg (sbedberg <email protected>)
Date: 03/31/99

At 08:18 AM 4/1/1999 +0800, you wrote:
>Hello Steve,
>
>Thursday, 1 April 1999, you wrote:
>
>SE> At 07:41 AM 4/1/1999 +0800, Weffen Chan wrote:
>>>Hello Php3 fellows,
>>>
>>> my PC is that:PHP3 for Win32+Win95,and my PC can connect to
>>> INTERNET.
>>> but when i wanna send a mail to a valid email
>>> address via mail() function,it FAILED!!
>>>
>>> the error is that:
>>> Warning: Failed to Connect in
>>>
>>> in fact,my PC can send email to that email address!!
>>> why?what's the problem???
>>> Please tell me why if u can.Thanx.
>
>SE> What are the settings in your php3.ini? There is a section:
>
>SE> [mail function]
>SE> SMTP = your.smtp.server.name ;for win32 only
>SE> sendmail_from = whatevername <email protected> ;for win32 only
(defaults to
>SE> me <email protected>)
>SE> sendmail_path = ;for unix only, ...
>
>SE> -steve
>
<SNIP>
>
>i think it is no problem.the pasted one is that:
>
>...
>[mail function]
>SMTP=localhost; for win32 only
>sendmail_from=zwf <email protected>; for win32 only
>...
>
>b.t.w Must i install mail server if i want to use that function??

Aahh...yes. I think you have two options

(1) change the
        SMTP=localhost
line to point to whatever smtp server you currently use for mail (perhaps
'smtp.cenpok.net' ? just a wild guess), or

(2) leave the line as it is and install a mail server on your
machine...I've never thought about mail servers for Win95, so I can't offer
any advice there...

I would use option (1) and let that server handle mail duties, unless there
is some reason you aren't allowed to.

-steve

+------------------------------ every day -------------------------------+
| Steve Edberg University of California, Davis |
| sbedberg <email protected> http://aesric.ucdavis.edu/ |
| (530) 753-7605 (530)754-9127 |
+-------------- computers are making people easier to use ---------------+

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>