Re: mail() and the From: attribute...
| From: | Stephan Fiedler | Date: | Fri, 13 Aug 2004 13:19:51 +0000 |
| Subject: | Re: mail() and the From: attribute... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193697@lists.php.net to get a copy of this message | ||
Hi Tristan,
Tristan.Pretty@risk.sungard.com wrote:
HAving: ..."From: address@site.com"); doesn't work on all recipients... BUT.. ..." From: justaname"); Works on others... but not all...? Surely this can't be? I've never come accross this before? Any ideas what's up?Well, what I do when sending mail with a "spoofed" sender, I do like this: $olduser = getenv("USER"); putenv("USER=$user_i_want_act_as_for_mass_mailing"); do { mail(.....); }while($there_are_more_Addresses_to_spam_at); putenv("USER=$olduser); Not quite sure, whether I used setenv or putenv, I'm sure U'll find out. AND: bweare sending spam to ME ;o)
Tris...Stephan
********************************************************************* The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *********************************************************************** THIS is really funny in a mailing list :o)