Ghost/ghost/email-service/test
Rishabh Garg 88979c852b
Updated email sending to remove invalid recipient emails (#16171)
closes https://github.com/TryGhost/Team/issues/2388

We have seen examples of sites with member emails that have invalid characters that can cause an entire email send to fail, or just cause a failure to those addresses. The issue that allowed members with invalid email address to be saved was patched earlier, but its possible there are still sites that contain some of those invalid email addresses.

This change updates new sending service to filter out the recipients with invalid email address before passing them to mail provider, so these rogue addresses don't affect the whole batch in anyway. We also trim the recipient emails to clear out any spaces first, which is the most likely culprit.

- uses new email validator that detects invalid email addresses with special chars
2023-01-24 16:13:10 +05:30
..
utils Added 100% test coverage to email renderer and fixed authors bug 2023-01-11 12:14:02 +01:00
.eslintrc.js Added email service package (#15849) 2022-11-21 10:29:53 +01:00
batch-sending-service.test.js Fixed Playwright tests for new email flow 2023-01-20 19:00:13 +01:00
email-controller.test.js 🎨 Add ability to send test email with chosen newsletter (#15783) 2023-01-09 17:48:30 +04:00
email-event-processor.test.js Added 100% test coverage to EmailEventProcessor 2023-01-04 16:07:19 +01:00
email-event-storage.test.js Added 100% test coverage for EmailEventStorage 2023-01-10 16:36:41 +01:00
email-renderer.test.js Added outbound link tagging setting (#16146) 2023-01-20 13:41:36 +01:00
email-segmenter.test.js Updated unit test coverage for email service (#15913) 2022-12-02 00:33:28 +05:30
email-service.test.js Added 100% test coverage to EmailController 2023-01-04 15:22:49 +01:00
mailgun-email-provider.test.js Restricted email-service package to 100% test coverage 2023-01-11 13:54:26 +01:00
sending-service.test.js Updated email sending to remove invalid recipient emails (#16171) 2023-01-24 16:13:10 +05:30