Click to See Complete Forum and Search --> : mail() function on Win32 + apache


Anon
01-30-2001, 04:49 AM
Seems like a number of people have been trying to figure out how to get PHP's mail() function to work in Windows.

I was trying to get Blat (command line email utility) to work but never got it to work, although this other guy said he did. If you can get this to work, let me know. Even still, you'd have to code something to call the thing... and then mail() would be unused (right?)... and you'd have to change any preexisting code.

Anyway, instead I found this really cool (and FREE) mail server for Win98/2000/ME/NT called PostCast Server. It's at www.postcastserver.com and, while running, will detect all your mail() calls from PHP and send the email on its merry way. Your server/pc is now the smtp server. And no need for any code changes in PHP.


That's all...

--out--

Anon
04-02-2001, 10:14 AM
Hi,

I took your advice and used Postcast myself - it works really well - hard to believe it's free!

Do you set your Postcast to send automatically? I find that I get a 'failed to connect' message back from php (4) if I set Postcast to send mail immediately. If I set it to manual it works fine.


Thanks for the recommendation.


Chris

Anon
02-07-2002, 11:47 PM
Could you please tell me, how to configure Win32, apache, php.ini and postcast for using the mail()-function correctly??

I always get an php-error with the following expression:
mail(\\\"administrator@wilfred.de\\\", \\\"Bug-report\\\", $message, \\\"reply-to:$email\\\")

I have configured like this:
in apache: nothing...

in php.ini:
smtp = localhost
sendmail_from = me@localhost.de

in postcast:
hostname: localhost port: 25

and in win32-environment: SMTP with value: localhost