Skip to content

Business Emailer/Notify API: Send out email to the valid emails even when 1 or more others are invalid #34074

Open

Description

@kialj876

Currently when we send out an email to the notify-api it returns a 400 if any of the recipients have an invalid email. The validation used is more strict than what is implemented for filings so it is possible to put in an email that passes the filing validation and then causes this error when the email is sent. This means no emails will be sent even if there are other valid recipients.

Need to discuss if this should be handled differently and if we should mirror the notify api validation or if we should silently ignore invalid emails.

Example:
Registration filed in dev (FM1169819) has a proprietor with an invalid email (a@a.aba) according to the notify-api. Now its registration email is not being sent even though its contact point email is valid

Activity

  1. added
    Entities Team
    bug
    on Jul 7, 2026
  2. vikas-gov commented on Jul 7, 2026

    @vikas-gov
    Collaborator

    To be reviewed with SRE

  3. mstanton1 commented on Jul 7, 2026

    @mstanton1
    Collaborator

    Meeting with SRE booked for July 9th.

  4. mstanton1 commented on Oct 23, 2026

    @mstanton1
    Collaborator

    @pwei1018 with changes made recently with GC Notify do you know if this is still an issue?

  5. pwei1018 commented on Oct 23, 2026

    @pwei1018
    Collaborator

    @mstanton1 I don't know whether GC Notify has changed its validation rules or not. The failure rate looks to be about the same as before. At this point, our focus should be on the new BC Notify service, as its validation and delivery rules may differ from those used by GC Notify. We'll need to verify the behavior against BC Notify's requirements and adjust our implementation as needed.

  6. changed the title [-]Business Emailer/Notify API: Send out email to the valid emails even when 1 or more others are invalid[/-] [+]Verify - Business Emailer/Notify API: Send out email to the valid emails even when 1 or more others are invalid[/+] on Oct 26, 2026
  7. mstanton1 commented on Oct 26, 2026

    @mstanton1
    Collaborator

    Thanks @pwei1018 . We will check within the new BC Notify service.

  8. changed the title [-]Verify - Business Emailer/Notify API: Send out email to the valid emails even when 1 or more others are invalid[/-] [+]Business Emailer/Notify API: Send out email to the valid emails even when 1 or more others are invalid[/+] on Oct 29, 2026
  9. kialj876 commented on Oct 29, 2026

    @kialj876
    CollaboratorAuthor

    When we created this ticket we were under the impression that notify-api was doing an extra validation check on the recipients and rejecting all the emails if any of the recipients failed the check (ie. invalid domain). Later I think we realized this extra validation was only on in dev and test due to the amount of invalid emails from those environments.
    Is that right @pwei1018 ?
    Now we are wondering what would happen in prod when one of the emails is invalid? I assume notify-api will attempt to send an email through BC Notify for each recipient and it will still send successfully for the valid ones even if one of the emails in the recipient list we sent was invalid?

  10. pwei1018 commented on Oct 29, 2026

    @pwei1018
    Collaborator

    @kialj876
    As a proof of concept (POC), we implemented the MillionVerifier service to validate email addresses and reduce notification failure rates. While the initial results are promising, this is a paid third-party service, and I don't expect it would be easy to procure and approve for use in a production environment.

    During BC Notify migration, I am making several enhancements to notify-api to help product teams better identify and address email delivery issues:

    • Enable BC Notify delivery callbacks to capture the delivery status of every email sent.
    • Add a 'PRODUCT' claim to each Keycloak client and save it in the notification database, allowing us to identify which product is associated with a failed email.
    • Generate a daily email delivery report to each product team, highlighting failed email notifications so they can proactively investigate and resolve issues.

    These changes will provide better observability into email delivery outcomes and help product teams take ownership of invalid or undeliverable email addresses within their applications.

  11. mstanton1 commented on Nov 16, 2026

    @mstanton1
    Collaborator

    Pulling back into refinement. Next steps are to have @pwei1018 implement the changes noted above for observability into emails failures and then to have the upgraded BC_Notify product launched to market. Once we have both we can assess whether there are any gaps or additional development steps for this team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamOn Holdbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions