You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Business Emailer/Notify API: Send out email to the valid emails even when 1 or more others are invalid #34074
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
@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.
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
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
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?
@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.
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.
Activity
vikas-gov commentedon Jul 7, 2026
To be reviewed with SRE
mstanton1 commentedon Jul 7, 2026
Meeting with SRE booked for July 9th.
mstanton1 commentedon Oct 23, 2026
@pwei1018 with changes made recently with GC Notify do you know if this is still an issue?
pwei1018 commentedon Oct 23, 2026
@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.
[-]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[/+]mstanton1 commentedon Oct 26, 2026
Thanks @pwei1018 . We will check within the new BC Notify service.
[-]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[/+]kialj876 commentedon Oct 29, 2026
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?
pwei1018 commentedon Oct 29, 2026
@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:
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.
mstanton1 commentedon Nov 16, 2026
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.