CreateSingleEmailToMultipleRecipients sends separate emails for to recipients #1054
Labels
status: waiting for feedback
waiting for feedback from the submitter
type: getting started
question while getting started
type: question
question directed at the library
Hi Team,
I've seen some closed issues with a similar topics, but I assume, if they are closed, they should be resolved. We used send grid to send emails, with specified lists for tos and ccs, and we faced with the issue that
CreateSingleEmailToMultipleRecipients
sends separate email for each email address in the tos list, ifshowAllRecipients = false
(last parameter default value), and just first recipient see himself and recipients in cc, second - just see himself. We just tried this for 2 recipients in tos and several in ccs. Unfortunately we haven't tried for more recipients on tos. When we setshowAllRecipients = true
single email to all recipients has been sent.In my opinion helper method which called
CreateSingleEmailToMultipleRecipients
shouldn't send separate email, that is not an expected behavior. If I would have separate email be sent I'll probably use another helper method likeCreateMultipleEmailsToMultipleRecipients
. I guess you should review your naming convention so it will be obvious what it will do.Is such behavior is expected one or that is an issue?
Below is a code with causes such behavior:
And code which works for us:
The text was updated successfully, but these errors were encountered: