Closed mahadikrushikesh closed 2 years ago
I have gone through all present documentation for sendgrid python API's but i didn't find any helpful, any help would be appreciate. thanks in advance!
You can pass in a list of attachments (e.g., message.attachment = [attachment1, attachment2, ...]
) or invoke add_attachment
for each attachment (e.g., [message.add_attachment(attachment) for attachment in attachments]
).
Underlying source: https://github.com/sendgrid/sendgrid-python/blob/d7d292cf2241c18d052b8e3705dcc134cc0912d5/sendgrid/helpers/mail/mail.py#L771-L789
Closing due to lack of activity.
I am using template id to send dynamic data and managed through personalization mail helper
Issue Summary
Is there way to send multiple emails with multiple attachments through personalization.
Code Snippet
the above written code is inside for loop and it is attaching for each email, due to loop making n number of attachments based on loops iteration but i want it to be with each personalization separately. does it possible in sendgrid in any another way.
Technical details: