Forum Moderators: coopster

Message Too Old, No Replies

Can't receive the bounce mail

         

duelist

9:32 am on Dec 31, 2009 (gmt 0)

10+ Year Member



Hello,

I'm getting headache on this. I'm currently develop the newsletter mailing using PHP.I try to redirect the bounced mail to an account, bounce@mydomain.com. I have look trough forums and also lot of searches, most of them suggest set the 5th parameter at mail(), and also set the sendmail_path at php.ini, but none of them working :(. Whats wrong? Oh, i'm using phpmailer.

TheMadScientist

12:33 am on Jan 1, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi duelist,

Welcome to WebmasterWorld!

Could you give us some samples of the code you are trying to use that's not working as you expect so we can have a look at it?

phpmailer is not something I use, but I'm sure someone here does and it's usually much easier to troubleshoot someone else's code when you can see the actual code they are trying to use.

duelist

10:27 am on Jan 4, 2010 (gmt 0)

10+ Year Member



Thank you TheMadScientist,

Here is the code:


$bouncemail = "bounce@mydomain.com";
$params = sprintf("-oi -f %s", $bouncemail);
@mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);

I also try to set the sendmail path:


ini_set("sendmail_from","ittfa.test@alloyfish.com");

I just follow as suggested from other forums and also from internet search.

Anything that I miss or wrong?

Thanks in advance.