From owner-freebsd-arch@FreeBSD.ORG Wed Jan 21 13:00:21 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55CF310658BF for ; Wed, 21 Jan 2009 13:00:21 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from websrv01.jr-hosting.nl (websrv01.jr-hosting.nl [78.47.69.233]) by mx1.freebsd.org (Postfix) with ESMTP id 14A478FC1C for ; Wed, 21 Jan 2009 13:00:20 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from localhost ([127.0.0.1] helo=galain.elvandar.org) by websrv01.jr-hosting.nl with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LPcDh-0006Hd-HY; Wed, 21 Jan 2009 13:30:09 +0100 Received: from 145.7.91.133 (SquirrelMail authenticated user remko) by galain.elvandar.org with HTTP; Wed, 21 Jan 2009 13:30:09 +0100 (CET) Message-ID: In-Reply-To: <1ed07a9e0901202303o465cba12wfbcdb10b759cada7@mail.gmail.com> References: <1ed07a9e0901202303o465cba12wfbcdb10b759cada7@mail.gmail.com> Date: Wed, 21 Jan 2009 13:30:09 +0100 (CET) From: "Remko Lodder" To: "pavan kosuru" User-Agent: SquirrelMail/1.4.16 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-arch@freebsd.org Subject: Re: Reg:SendMail Not working X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2009 13:00:23 -0000 Dear Pavan, On Wed, January 21, 2009 8:03 am, pavan kosuru wrote: > Hi , > I am trying to send SMTP mail using the mail() function in php but unable > send to the destination I intended to. I wanted send mail using the php > script which is running fine in one server but not in my localmachine.In > my > local machine it just returning the succes code and I m not receving any > mails. I configured the sendmail as well as postfix. Some one help me > > > ------ Pavan ... Thank you for your interest in the FreeBSD Operating System. FreeBSD is an open source BSD licensed operating system which can be extended by third party tools. One of these tools is the PHP application set. We can try to give you support for FreeBSD as much as possible within our volunteer time and technical knowledge, that is the operating system. It is much harder for us to support you with "PHP" kind of problems, since that is not within our scope. PHP Mail() functionality uses /usr/sbin/sendmail as far as i can remember, which might require a running sendmail version. Can you please check with ``ps auxww | grep sendmail'' whether sendmail is being listed in the process list? One simple thing to know whether the sendmail application works or not, is by seeing if you get daily periodic emails from the system maintenance scripts. If that is being received, I suggest that you look at the mail() documentation from PHP and potentially set the correct parameters. Also note that php.ini has some mentionings of where and how mail should be send. Also note that the -arch list is not for questions like these, questions like this, if applicable should be send to the questions@FreeBSD.org mailinglist. Again thanks for your interest in FreeBSD and the willingness to share knowledge! Best Regards, Remko > -- /"\ Best regards, | remko@FreeBSD.org \ / Remko Lodder | remko@EFnet X http://www.evilcoder.org/ | / \ ASCII Ribbon Campaign | Against HTML Mail and News