> 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@xxxxxxxxxxx The above line sends on email on the old server but not the new server. -----Original Message----- From: Chris [mailto:dmagick@xxxxxxxxx] Sent: Monday, October 27, 2008 2:55 PM To: Marc Fromm Cc: php-general@xxxxxxxxxxxxx Subject: Re: 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@xxxxxxxxxxx -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php