Hello Everybody,
I am currently looking for a way to record bounces on emails that a Silverstripe system sent.
Google doesn't seem to know too much about this topic (see below for a short summary of the results I found).
So as far as I can see currently the only way to get bounced emails into Silverstripe somehow is to use the Burnbright class together with a pipe on the mail system of the server. Did anyone had some experience with this within the last year(s). Do you think it's worth a shot or should we start right a way with an integration of own code?
I.e. Zend Email class to read & parse an existing mail account, identify bounce mails by message id passed by Silverstripe and parse the body of this mail in some kind of DataObject (i.e. Email_BounceRecord? ;)).
Is there any other known solution I did not find yet?
Thanks a lot for any kind of enlightenment :)
SF.
Currently found approaches for Email Bounce Handling:
1.) Silverstripe API
The Email class constructor collects a parameter called $bounceHandlerURL that sets the email header X-SilverStripeBounceURL to the passed value. That's it.
The Api documentation lists two classes Email_bounceHandler and Email_bounceRecords.
I guess these work similar to the burnbright class ad expect a bounce-mail to be piped to the given URL?
2.) Newsletter Module
The latest release of the Silverstripe Newsletter Module [v0.4.0-rc1] seems to create an Email_BounceRecord for every Blacklisted Member. Didn't try but i guess this code will crash due to lack of this class.
3.) Burnbright.co.nz
offers a Solution "How to set up email bounce with Silverstripe...". The post is from Dec. 2009 and offers a class that handles bounce emails requests triggered by piped mails on the system.