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('[EMAIL PROTECTED]', '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: [EMAIL PROTECTED] (David Otton) > Newsgroups: php.general > Date: Mon, 05 Jan 2004 16:36:09 +0000 > To: Monty <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > 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... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php