1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email Subscription 2.7

Send a daily email with the last 24 hours new topics.

  1. AndyB

    AndyB Well-Known Member

    Automated Bounced Email Handler for guests:

    If you will offer guests the ability to subscribe to your Email Subscription and you have configured "Automated Bounced Email Handler" in XenForo, you can automatically eliminate those invalid email addresses from the Email Subscription by adding the following code.

    Adds ability to automatically remove guest email subscriptions from add-on Email Subscription if email bounces.

    XenForo/Model/EmailBounce.php

    Line 15

    PHP:
            $recipient $bounce->getRecipient();
            if (
    $recipient)
            {
                
    $userId $this->_getDb()->fetchOne('SELECT user_id FROM xf_user WHERE email = ?'$recipient);
                if (!
    $userId)
                {
                    
    //########################################
                    // start hack
                    //########################################
                    // get database
                    
    $db XenForo_Application::get('db');
                    
    // delete row if older than 30 days
                    
    $db->query("
                        DELETE FROM xf_email_subscription
                        WHERE email = ?
                    "
    ,$recipient);
                    
    //########################################
                    // end hack
                    //########################################
                    
    $userId null;
                }
            }
     
    Last edited: Nov 12, 2014
    Lindal_Oronar likes this.
  2. Lindal_Oronar

    Lindal_Oronar Well-Known Member

    Hi @AndyB

    Great add-on just what I needed.
    Is there a option to send a test email to myself?
     
    jauburn likes this.
  3. RAHSTYLES

    RAHSTYLES Active Member

    Could you possibly add more options like how many topics to show and you can edit the email look stuff like that please
     
    jauburn likes this.
  4. RAHSTYLES

    RAHSTYLES Active Member

    btw how do you even know if your suscribed? is ther a button somwhere that says subscribe to email?
     
    jauburn likes this.
  5. oO5 Dynasty

    oO5 Dynasty Active Member

    What about a HTML email like constantcontact.com
    Do you think thats something that could be created for xenforo?
     
  6. petertdavis

    petertdavis Well-Known Member

    The email is formatted with html. There's a screen shot of how it looks on the Overview page. You could probably change the format by editing the template if you wanted.
     
  7. AndyB

    AndyB Well-Known Member

  8. dethfire

    dethfire Well-Known Member

    This is a very good idea. I would however change it to a weekly email with the past weeks top 20 new threads. Every day is a bit much. thanks!!
     
    Markos likes this.
  9. karll

    karll Well-Known Member

    Will it only list topics in forums that each user is allowed to access, or do I need to specify those private nodes in the Exclude Forums field in the configuration?
     
    Last edited: Oct 15, 2014
    dethfire likes this.
  10. RAHSTYLES

    RAHSTYLES Active Member

    Could you please update this to give an option to have everybody subscribed to it already by defualt? thanks.
     
  11. Markos

    Markos Well-Known Member

    Agreed. That option would be great.


    +1. For many members, a daily mail is too much. A weekly mail is fine IMHO. For reduce the number you can give a option to choice the number of threads in the mail for the admin. In alternative, 1 thread for every forum.
     
    RAHSTYLES likes this.
  12. TheBoss

    TheBoss Well-Known Member

    Love this Andy thank you..

    Would be nice if members could have a choice of what categories they want notified about..

    I think daily is just fine as it is..
     
  13. TheComputerGuy

    TheComputerGuy Active Member

    Any chance this might happen?
     
    RAHSTYLES and FredC like this.
  14. tajhay

    tajhay Well-Known Member

    Hi Andy, any chance you could make a wf widget renderer so we can put the form where you subscribe anywhere on the site, for example on the sidebars? Would be fantastic.

    Keep up the great work. Love seeing your contributions to the community.
     
  15. AndyB

    AndyB Well-Known Member

  16. AndyB

    AndyB Well-Known Member

  17. AndyB

    AndyB Well-Known Member

  18. eagle eyes

    eagle eyes Active Member

    A widget for this in the sidebar would be nice. Will increase subscriptions.
     
  19. karll

    karll Well-Known Member

    It looks like a couple of phrases are missing. I see this in my email:
    emailsubscription_forum
    emailsubscription_title
    emailsubscription_unsubscribe_link
     
  20. AndyB

    AndyB Well-Known Member

    jauburn likes this.

Share This Page