Get bounces with mail()?

They have: 140 posts

Joined: Jan 2003

How can I get bounces when using the mail() function? I've read many things and tried many things. Nothing worked.

All help is appreciated!

He has: 1,016 posts

Joined: May 2002

Depends on the mailserver configuration you're on. For safety reasons, a lot of mailservers won't let you change the return-path when sending email via a script. We have this configuration on our servers as well. However, we have worked around this by creating a script that will check all bounced emails and forward them to the actual sender on the server.

They have: 140 posts

Joined: Jan 2003

"However, we have worked around this by creating a script that will check all bounced emails"

how does your script CHECK bounced mails... or have you set it up so that bounced messages go to a certain address...?

SonicMailer Pro
The best mailing list manager has just gotten better!
Click here for a full list of features!

Busy's picture

He has: 6,151 posts

Joined: May 2001

I suppose you could set the from and reply to addresses differently

He has: 1,016 posts

Joined: May 2002

Quote: Originally posted by KandieMan101
"However, we have worked around this by creating a script that will check all bounced emails"

how does your script CHECK bounced mails... or have you set it up so that bounced messages go to a certain address...?

Exactly. All bounced emails go to a certain email address and the script then logs into that POP3/IMAP account and send all emails to the sender with formatted content.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.