DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN Messaging and Notification emails not being sent

Sort:
You are not authorized to post a reply.





Veteran Member





    I realize this is a bit of an edge case, but that's also the reason I want to post this.

    We had an issue on a client site where some users did not receive the email notifications that should have been sent out, on DNN internal (Social) notifications and messages.

    All the settings seemed to be fine, the messages show up on the user profile page, but no email were sent out.

    We checked the DNN code and found two “conditions” for these emails to be sent.

    1. DNN only sent out emails of unread notifications and messages.
    2. DNN does a check if the email address is valid before sending the emails and does not send the email if it does not match the email regex.
      (Security > Member Accounts > Registration Settings)

    For this client B. was the issue.

    On this site there were already a lot of users including some test users with external email addresses. At a later stage the client changed the email validation regex so only email addresses with the client’s domain name are allowed. But they did not change or test the existing users for this changed rule.

    So any user with an external email address or in this case an uppercase character in the domain part of the email address didn’t receive any email notifications as they didn’t pass the email validation.

    As you can see sometimes checks and settings that make perfect sense can still lead to “problems”. I hope this saves someone who runs into the same issue a bit of time 😊


     






    Advanced Member





      Awesome Timo! Thanks for sharing!!!

      Ing. Marco Alvarado Gómez MSc | Globalode
      Phone. +506 6049-1880 | WhatsApp. +506 6049-1880 | Email. [email protected]
      Address. Costa Rica (A Pura Vida place!).





      Veteran Member





        Posted By Timo Breumelhof (40F) on 4/24/2024 1:09 PM

        I realize this is a bit of an edge case, but that's also the reason I want to post this.

        We had an issue on a client site where some users did not receive the email notifications that should have been sent out, on DNN internal (Social) notifications and messages.

        All the settings seemed to be fine, the messages show up on the user profile page, but no email were sent out.

        We checked the DNN code and found two “conditions” for these emails to be sent.

        1. DNN only sent out emails of unread notifications and messages.
        2. DNN does a check if the email address is valid before sending the emails and does not send the email if it does not match the email regex.
          (Security > Member Accounts > Registration Settings)

        For this client B. was the issue.

        On this site there were already a lot of users including some test users with external email addresses. At a later stage the client changed the email validation regex so only email addresses with the client’s domain name are allowed. But they did not change or test the existing users for this changed rule.

        So any user with an external email address or in this case an uppercase character in the domain part of the email address didn’t receive any email notifications as they didn’t pass the email validation.

        As you can see sometimes checks and settings that make perfect sense can still lead to “problems”. I hope this saves someone who runs into the same issue a bit of time 😊

        Honestly, emails that are NOT sent should be treated as exceptions and logged in the Admin Log.  This way, you could've just looked there and seen what was happening. 

         






        Veteran Member





          I think it would be even better if the send email function would have a separate log with all "activities"?
           

          You are not authorized to post a reply.

          These Forums are dedicated to the discussion of DNN Platform.

          For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

          1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
          2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
          3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
          4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
          5. No Flaming or Trolling.
          6. No Profanity, Racism, or Prejudice.
          7. Site Moderators have the final word on approving / removing a thread or post or comment.
          8. English language posting only, please.

          Would you like to help us?

          Awesome! Simply post in the forums using the link below and we'll get you started.

          Get Involved