note 24153 rejected from ref.mail by jimw
| From: | jimw@php.net | Date: | Thu, 08 Aug 2002 18:56:47 +0000 |
| Subject: | note 24153 rejected from ref.mail by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34561@lists.php.net to get a copy of this message | ||
You should, like it says, add a header FROM.
mail("webmaster@mi-ho.de","subject","comment", "From:
you@yourdomain.something")
I've a question too though. It's been asked before on this page, but it was never answered
and there aren't any real solution anywhere on the internet. The question is asked alot of
times, but ignored in most cases.
The Return-Path header doesn't work, and my bounced emails get back to
apache@localhost.localdomain.
The only solution given on some pages is adding a fifth option in the mail() function. Like this:
mail("me@youis.what", "subject", "comment", "headers",
"-fbounced@email.address")
But that doesn't work for me either. I tried setting the email adres in the php.ini file too
like: sendmail_path = usr/sbin/sendmail -t -i -f
Any other suggestions? Preferably NOT by editing the httpd.conf or php.ini. But through php. Maybe I
forget another header?