RE: [PHP] send emails in php not working

From: Date: Mon, 27 Oct 2008 22:15:07 +0000
Subject: RE: [PHP] send emails in php not working
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-282517@lists.php.net to get a copy of this message
> You need a local mail server. Sendmail 8.13.8-2.el5 is installed on the new server and the old server (sendmail-8.13.8-1.fc5). >echo 'test' | mail -s 'test' example@example.com The above line sends on email on the old server but not the new server. -----Original Message----- From: Chris [mailto:dmagick@gmail.com] Sent: Monday, October 27, 2008 2:55 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] send emails in php not working Marc Fromm wrote: > We recently moved to a new server. Our code that would send out emails is no longer sending > emails. > There are no messages in the httpd logs associated with running the email..php files. > The email scripts worked on the old server. Is there a special setting in php.ini for sending > emails in php or is there a packages that needs to be installed on the new server. Below is some > sample code that worked on the old server You need a local mail server. Choices usually are postfix, exim, sendmail or qmail (I suggest postfix) - they are usually the top 4 open source ones. Does email work from command line? echo 'test' | mail -s 'test' example@example.com -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#282517) next »