From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1ISL9k-0005Tf-Ia for garchives@archives.gentoo.org; Mon, 03 Sep 2007 23:16:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l83N8iLN019280; Mon, 3 Sep 2007 23:08:44 GMT Received: from joe.tiscali.it (joe.tiscali.it [213.205.33.54]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l83N2Xnl012082 for ; Mon, 3 Sep 2007 23:02:33 GMT Received: from [192.168.0.1] (217.133.77.46) by joe.tiscali.it (7.3.122) id 46A8A46B003E61DA for gentoo-user@lists.gentoo.org; Tue, 4 Sep 2007 01:02:32 +0200 Subject: [gentoo-user] ssmtp and php mail() From: Stefano Guglia To: gentoo-user@lists.gentoo.org Content-Type: text/plain Date: Tue, 04 Sep 2007 00:59:17 +0200 Message-Id: <1188860357.5543.42.camel@pc-0001.localarea> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 5fe92889-118d-47f1-b0dc-202c995e7024 X-Archives-Hash: 2ed98735cc4a0724133cf91f7359f710 hello everybody!.. trying to use mail() + ssmtp in a php script but no way.. my host: pc-0001.localarea mail server: pc-0004.localarea I can send mail to remote smtp server thru ssmtp (and its alias sendmail) via command line (and can also pop back to my client), but if I try from php, the apache log says "sendmail: No recipients supplied - mail will not be sent". Note that php condition is true. any help?? thanks, Stefano. here my files: # # /etc/ssmtp.conf -- a config file for sSMTP sendmail. # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=stefano@pc-0004.localarea # The place where the mail goes. The actual machine name is required # no MX records are consulted. Commonly mailhosts are named mail.domain.com # The example will fit if you are in domain.com and your mailhub is so named. mailhub=pc-0004.localarea # Example for SMTP port number 2525 # mailhub=mail.your.domain:2525 # Example for SMTP port number 25 (Standard/RFC) # mailhub=mail.your.domain # Example for SSL encrypted connection # mailhub=mail.your.domain:465 # Where will the mail seem to come from? rewriteDomain= # The full hostname # Gentoo bug #47562 # Commenting the following line will force ssmtp to figure # out the hostname itself. # hostname=_HOSTNAME_ # Set this to never rewrite the "From:" line (unless not given) and to # use that address in the "from line" of the envelope. #FromLineOverride=YES # Use SSL/TLS to send secure messages to server. #UseTLS=YES # Use SSL/TLS certificate to authenticate against smtp host. #UseTLSCert=YES # Use this RSA certificate. #TLSCert=/etc/ssl/certs/ssmtp.pem ************************************************************* # /etc/ssmtp/revaliases # sSMTP aliases root:stefano@pc-0004.localarea:pc-0004.localarea ************************************************************* #/etc/php/apache2-php5/php.ini #/etc/php/cli-php5/php.ini [mail function] ; For Win32 only. ;SMTP = localhost ;smtp_port = 25 ; For Win32 only. ;sendmail_from = me@example.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path=/usr/sbin/sendmail ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters = -- gentoo-user@gentoo.org mailing list