PHP 4.2.2 mail() function and sendmail daemon

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
madtux
Forum Newbie
Posts: 1
Joined: Wed Oct 02, 2002 11:40 am
Location: Longueuil, Quebec, Canada
Contact:

PHP 4.2.2 mail() function and sendmail daemon

Post 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
User avatar
chiefmonkey
Forum Commoner
Posts: 25
Joined: Sat Apr 20, 2002 5:21 am
Location: Glasgow UK

Re: PHP 4.2.2 mail() function and sendmail daemon

Post 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
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

You might want the Pear SMTP classes if you have access to an SMTP server you can send mail through.
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post 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?
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Search Google for something like "Free SMTP server software" or search this at download.com
Post Reply