Re: PEAR?

From: Date: Tue, 13 Feb 2007 19:51:26 +0000
Subject: Re: PEAR?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26562@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Question about that can the return path be set in the headers like: $headers .= 'Return-Path: someone@somewhere.com' . "\r\n" I guess one could use the additional parameters of mail() to specify the - -f option. Just wondering if the above would work. David Sanders wrote: > You may need to enforce the return path to be the same as the from field. > I PEAR tries to do this at least with the sendmail driver using the -f > option, but I think from memory apache might need permission for it first. > > >> Hello, >> >> I have a simple php script that sends email. It actually successfully >> sends email for those recipients that doesn't have spam filter. What >> should I use or do in order this email be send even though the spam filter >> is active? Is PEAR can handle this problem? Thanks. >> >> Below is a simple php script that send email. >> >> <?php >> $recipient = "yyy@somesite.com"; >> $headers = 'From: JenniferMontesa@yahoo.com' . "\n"; >> //$headers = 'From: AntoinetteJean@rogers.com' . "\r\n"; >> $headers.= "MIME-version: 1.0\n"; >> $headers.= "Content-type: text/html; charset= iso-8859-1\n"; >> >> $message = "This is a Test Email. Please let me know if you got this. >> Thanks.\n"; >> $useremail = $recipient; >> mail($useremail,'test run email blast', $message, $headers); >> ?> >> >> >> Jennifer >> >> >> >> --------------------------------- >> Sucker-punch spam with award-winning protection. >> Try the free Yahoo! Mail Beta. > > - -- Troy Cregger Lead Developer, Technical Products. Kennedy Information, Inc One Phoenix Mill Ln, Fl 3 Peterborough, NH 03458 (603)924-0900 ext 662 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF0ha+nBEWLrrYRl8RApEDAJ96f/QwcUQJqO58oP7bjQV2sFBERwCdHXiB 9BA7w9DGQUVpZWQ23wSgFJU= =NfxJ -----END PGP SIGNATURE-----

« previous php.pear.general (#26562) next »