Re: Alternate way of e-mailing in PHP

From: Date: Mon, 05 Jan 2004 22:14:24 +0000
Subject: Re: Alternate way of e-mailing in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-173785@lists.php.net to get a copy of this message
Here's what's in my PHP.INI for e-mail: sendmail_path = "/usr/sbin/sendmail -t -i" I confirmed that the path is correct. The alternate e-mail code I posted previously DOES work, but this simple mail command always causes a "data format error" in Sendmail: mail('me@myserver.com', 'Subject', 'Body text'); I've also tried Manuel Lemos' MIME, SMTP, and MAIL classes but they don't work for me either. The only thing that works in PHP for sending e-mail is by opening Sendmail as a separate process using popen() within PHP, then writing directly to it using fputs. > From: phpmail@jawbone.freeserve.co.uk (David Otton) > Newsgroups: php.general > Date: Mon, 05 Jan 2004 16:36:09 +0000 > To: Monty <monty3@hotmail.com> > Cc: php-general@lists.php.net > Subject: Re: [PHP] Alternate way of e-mailing in PHP > > On Mon, 05 Jan 2004 01:38:09 -0500, you wrote: > >> I've been getting "data format errors" from Sendmail when trying to send >> automatic e-mails from my websites recently, and as I can't find a fix for > > Quick questions: what does sendmail_path in php.ini look like? > > Where is the "data format error" message being created? My /guess/ is that > your local copy of sendmail is using the wrong FQDN and so your email is > being rejected by the next machine in the chain. Have you changed anything > in /etc/hosts or your DNS recently? > > But in that case... the code you show below probably wouldn't work either. > Odd. Maybe you could ask the guys in comp.mail.sendmail...

« previous php.general (#173785) next »