Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NilRecipientsError thrown incorrectly for SendGrid emails #643

Open
emadalam opened this issue Aug 29, 2022 · 0 comments
Open

NilRecipientsError thrown incorrectly for SendGrid emails #643

emadalam opened this issue Aug 29, 2022 · 0 comments

Comments

@emadalam
Copy link

As per the SendGrid usage, the send api allows us to skip the to, cc, bcc at the root level as long as the personalizations key with valid fields are provided. However the Mailer seem to be validating this at root level regardless of the adapter in use, and throws a NilRecipientsError.

Is there any workaround or quick fix for this? How can we send an email (common from, template_id etc) to multiple recipients via personalizations key, without setting the root level to, cc or bcc? The current personalizations implementation doesn't seem to fulfil the use case. Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant