Re: Problem sending with mail()
| From: | Mulga Web Services | Date: | Wed, 02 Aug 2000 05:31:14 +0000 |
| Subject: | Re: Problem sending with mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9631@lists.php.net to get a copy of this message | ||
The problem could lie in the first line : it looks like you're sending mail
to sendmail rather than qmail (unless sendmail forwards it on to qmail or
whatever).
Mulga Mick
----- Original Message -----
From: Alexander Dohmen <alex@oih.rwth-aachen.de>
To: PHP General <php-general@lists.php.net>
Sent: Wednesday, August 02, 2000 8:10 AM
Subject: [PHP] Problem sending with mail()
> Does anybody know why i can not send mail via the mail() function?
> I'm using PHP 3.0.15 and qmail on my linux box. Is there a problem with
> qmail and PHP? I also tried the following with no result:
>
> $MP = "/usr/lib/sendmail -t";
> $fd = popen(MP,"w");
> fputs($fd, "To: $EMAIL\n");
> fputs($fd, "From: $FROM\n");
> fputs($fd, "Subject: $subject\n");
> fputs($fd, "Reply-To: $REPLYTO\n");
> fputs($fd, "X-Mailer: PHP\n\n");
> fputs($fd, $body);
> pclose($fd);
>
> So can anybody tell me, what's going wrong?
>
> --
> ____________________________________________________________________
> Alexander Dohmen
> mailto:alex@oih.rwth-aachen.de
> ____________________________________________________________________
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>