Welcome Guest, Not a member yet? Register   Sign In
Detect if the email sent bounced.
#2

[eluser]smilie[/eluser]
Hi,

As far as I know, (almost) any e-mail (PHP) function only sends e-mail to the outgoing server. And there it 'stops'. So, to check for bounced mail, you would need to do one of two things:

1. To check if mail would be accepted before you send it; for this, you will have to do a couple of things:
- get the receiving e-mail server (from DNS MX records);
- open connection to it and send command RCPT TO: $email;
If the response says OK - then that e-mail address accepts e-mails for that e-mail account;
Otherwise, response would be something like "e-mail address not recognized or what else"...

2. Second options is afterwards; meaning, you send e-mail with CI lib as usual, but afterwards you check the mailbox which has sent e-mail if it has received failure message. For this you will have to 'POP' the mailbox and parse e-mails in it, looking for the 'failed' message. Main disadvantage is the fact that 'failed' message can come as long as 48 hours later on... In the first case you know forehand if it will work or not.

In both cases, you will have to extend the e-mail lib.

Cheers,
Smilie


Messages In This Thread
Detect if the email sent bounced. - by El Forum - 01-24-2011, 03:49 AM
Detect if the email sent bounced. - by El Forum - 01-24-2011, 06:49 AM
Detect if the email sent bounced. - by El Forum - 01-24-2011, 07:54 AM
Detect if the email sent bounced. - by El Forum - 01-24-2011, 08:30 AM
Detect if the email sent bounced. - by El Forum - 01-24-2011, 05:50 PM
Detect if the email sent bounced. - by El Forum - 01-24-2011, 07:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB