I have built a site that sends out lots of emails to various lists, and am wanting to implement proper bounce handling.
I see there is an Email_Bouncehandler class, but it doesn't have much documentation.
Can someone please give me some pointers as to generally how I'd set up this sort of functionality? Would I create a separate mailbox and poll it? Or is it possible for a mail system to bounce back to a url?
7 August 2011 at 11:45pm
Ok so you can actually set the bounce handler when sending your emails, it's fifth argument when you construct a new Email. The bounce handler in this case is just a controller (check the code in sapphire/email/Email.php) which gets the data sent back to it. I'm no Email expert so I don't know how a bounce actually works but if you subclass Email_BounceHandler then that class will be used automatically instead.
Actually when googling it I found [url=http://www.burnbright.co.nz/how-to-set-up-email-bounce-handling-using-silverstripe-and-cpanel/]this[/url]. It seems to be what you guys need.