Re: PEAR?

From: Date: Tue, 13 Feb 2007 20:35:20 +0000
Subject: Re: PEAR?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26563@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I ran this using my own email address and it worked, return path was the same as $to. Which is good because I was getting some bounces from spam filters as well. #!/usr/bin/php -q <?php $to = 'someone@somewhere.com'; $subject = 'test'; $message = 'tickle'; $headers = 'From: someone@somewhere.com' . "\r\n" . 'Reply-To: someone@somewhere.com' . "\r\n" . 'Return-Path: someone@somewhere.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to,$subject,$message,$headers); echo "OK\n"; ?> 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 iD8DBQFF0iEInBEWLrrYRl8RAqFiAJ9XPS5I/0g/bvzGwAgHFGifb7QIXQCeKcVP YhekGhxCZB1rbMCQCXUtPWE= =C7V1 -----END PGP SIGNATURE-----

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