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 · 1 comment
Open

NilRecipientsError thrown incorrectly for SendGrid emails #643

emadalam opened this issue Aug 29, 2022 · 1 comment

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?

Copy link
Contributor

This issue has been automatically marked as "stale:discard". We are sorry that we haven't been able to prioritize it yet.
If this issue still relevant, please leave any comment if you have any new additional information that helps to solve this issue. We encourage you to create a pull request, if you can. We are happy to help you with that.

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

No branches or pull requests

1 participant