Page 1 of 1

PHP 4.2.2 mail() function and sendmail daemon

Posted: Wed Oct 02, 2002 11:40 am
by madtux
Hi,

I'm a PHP newcomer and I have a question about the mail() function.

Here I run Apache 1.3.26 w/ PHP 4.2.2. I've written a script that sends a message taken from a form on the page. I use mail("my_email_address", "message from your site", $message, "From: $from").

It works well, but I want to know if it's also possible to make it work without having the sendmail daemon running (listening on ports 25 and 587).

Thanks in advance.

Nicolas

Re: PHP 4.2.2 mail() function and sendmail daemon

Posted: Wed Oct 02, 2002 12:36 pm
by chiefmonkey
madtux wrote:Hi,

I'm a PHP newcomer and I have a question about the mail() function.

Here I run Apache 1.3.26 w/ PHP 4.2.2. I've written a script that sends a message taken from a form on the page. I use mail("my_email_address", "message from your site", $message, "From: $from").

It works well, but I want to know if it's also possible to make it work without having the sendmail daemon running (listening on ports 25 and 587).

Thanks in advance.

Nicolas
No, I'm afraid it isn't


George

Posted: Wed Oct 02, 2002 2:24 pm
by llimllib
You might want the Pear SMTP classes if you have access to an SMTP server you can send mail through.

Posted: Wed Oct 02, 2002 10:23 pm
by hedge
I am in almost exactly the opposite situation. I am on windows and it the 'mail' call seems to communicate with the SMTP server itself. The script has to wait for it to finish... so is there a sendmail like service I can use on my windows box?

Posted: Thu Oct 03, 2002 12:51 am
by Takuma
Search Google for something like "Free SMTP server software" or search this at download.com