Bounced emails



  • I have a list of emails in my system that have bounced and I would like NodeBB to stop sending emails to those addresses. Is there a way I can turn off those email addresses?



  • Why don't you use a service like mailgun which would take care of that for you ? I believe it is free for up to 10k emails per month.



  • @fgallese I'm using Sparkpost and have 100k for free. And, yes, it takes care of that for me.

    What I'm trying to avoid is wasting an "email send" on trying to send to an email that bounces every single time . I'll send a digest to 12k emails and only 9k go through. I don't want to keep wasting those 3k "email sends."

    Does NodeBB not support a way to flag an email as invalid?



  • @baris @julianlam Sorry to loop you into this. Since the data model isn't exactly spelled out anywhere, it's super tough to browse the code for things like this. I looked at the sendgrid mailer and that wasn't helpful.

    Any pointers on where to start would be great. Thanks again for helping!



  • Any thoughts here? Anybody? Is there any user setting or database record that basically says, "do not send mail to this account?"



  • Each user has different settings in their settings object for notifications and digest. The key for the settings object is user:<uid>:settings

    "dailyDigestFreq" can be set to "off" to turn it off.

    There there is a setting for each notification type:

         "notificationType_new-chat" : "notificationemail",
         "notificationType_new-reply" : "notificationemail",
         "notificationType_upvote" : "notificationemail",
         "notificationType_new-topic" : "notificationemail",
         "notificationType_follow" : "notificationemail",
          "notificationType_group-invite" : "notification",
          "notificationType_mention" : "notificationemail",
          "notificationType_new-register" : "notificationemail",
          "notificationType_post-queue" : "notificationemail",
          "notificationType_new-post-flag" : "notificationemail",
          "notificationType_new-user-flag" : "notificationemail",
          "notificationType_group-request-membership" : "none"
    

    It can be set to "none" to disable emails and notifictions for that type.



  • @baris Thanks this is super helpful!

    Is there a way to "invalidate" an email (e.g., when a new user has registered but has not confirmed their email)? Would that stop emails from being sent?



  • If you set a user's email to "" then emails won't be sent to them.


  • Community Rep

    @fgallese said in Bounced emails:

    Why don't you use a service like mailgun which would take care of that for you ? I believe it is free for up to 10k emails per month.

    This is what I use. They've been great.


  • Community Rep

    @djensen47 said in Bounced emails:

    Any thoughts here? Anybody? Is there any user setting or database record that basically says, "do not send mail to this account?"

    Yes, my users control this for themselves.



  • @baris 🤣 Okay, I think I'll go with changing the settings. Even if it's bouncing, I need the old email address for … reasons.



  • @scottalanmiller said in Bounced emails:

    @djensen47 said in Bounced emails:

    Any thoughts here? Anybody? Is there any user setting or database record that basically says, "do not send mail to this account?"

    Yes, my users control this for themselves.

    But if the email is bouncing; I don't want to leave it to the user who may never actually come back. I have a user base of 12k going back as far as 2003. 😉


  • Community Rep

    @djensen47 said in Bounced emails:

    @scottalanmiller said in Bounced emails:

    @djensen47 said in Bounced emails:

    Any thoughts here? Anybody? Is there any user setting or database record that basically says, "do not send mail to this account?"

    Yes, my users control this for themselves.

    But if the email is bouncing; I don't want to leave it to the user who may never actually come back. I have a user base of 12k going back as far as 2003. 😉

    Understandable, maybe get a list from your email provider of what is bouncing, then write a script to pull those from the database?


Log in to reply
 

Suggested Topics

  • 2
  • 1
  • 4
  • 7
  • 15
| |