Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Silverstripe Bounce Handling

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1080 Views
  • Silverfish
    Avatar
    Community Member
    59 Posts

    Silverstripe Bounce Handling Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Silverstripe Bounce Handling Link to this post

    The Api documentation lists two classes Email_bounceHandler and Email_bounceRecords, but actually these classes don't exist within the downloaded sources (version 2.4.7)

    Those classes are there https://github.com/silverstripe/sapphire/blob/2.4/email/Email.php#L618

  • Silverfish
    Avatar
    Community Member
    59 Posts

    Re: Silverstripe Bounce Handling Link to this post

    Hi Willr,

    I fully apologize for this short-sighted statement!
    I forgot that Sapphire / SilverStripe uses to put several classes within one file and so just searched for filenames.

    Do I get the code right, that bounces should be piped to something like http://domain.com/Email_BounceHandler?Email=[text]&Date=yy-mm-dd&Time=hh-mm-ss&Message=BounceFromXy ?

    Thx
    SF.

    1080 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.