mail () function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

mail () function

Post by malcolmboston »

Simple question, i need to know if an email has bounced or not, is there any in-built functions or will he return from mail return something significant

Thanks in advance
Mal
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Nothing built-in that I know of.

From what I've seen, you'll need to look at the messages in the inbox for stuff from a postmaster saying something "couldn't be found" or something.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

so no automated way, according to a client PHPList does it, its basically for a newsletter syste, (not spam!), so any ideas how PHPList implements it then? according to my client, PHPList detects if its bounced times and then blocks the email
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

malcolmboston wrote:so no automated way, according to a client PHPList does it, its basically for a newsletter syste, (not spam!), so any ideas how PHPList implements it then? according to my client, PHPList detects if its bounced times and then blocks the email
As Feyd mentioned, most likely, it has inbox access. With that, it can search for bounced returns.

Without that, it is depending on SMTP return codes which are more often inaccurate than they are accurate. In fact, for SMTP servers following the RFC's (the majority), they will almost always accept an email - meaning the "accept" notice is practically worthless.

Short of inbox access (which is difficult, complicated, and requires server-side (beyond scripting) setup), there is no reliable method of detecting success.
Post Reply