Re: Problem in sending mail with mail() function

From: Date: Wed, 25 Apr 2001 17:01:11 +0000
Subject: Re: Problem in sending mail with mail() function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50317@lists.php.net to get a copy of this message
"Vishak K Tomy" <vishak_tomy@yahoo.com> wrote in message news:3AE6C18B.4971@yahoo.com... > Hello, > I tried to send mail through the mail function but it is not > working. I am using php version 3.0.12 under linux, following is the > code I used to send mail. > So what is the problem with it, any body please solve this. > > Regards > Vishak Hi mail() uses the SMTP service running on localhost...errr... on the same computer as the web service is running. So if there is no smtp service on localhost, mail() won't work. You must get SMTP libraray and use it to connect to some other server and send the message. It's really simple and easy to come by.

« previous php.general (#50317) next »