sendgrid / sendgrid-python

The Official Twilio SendGrid Python API Library
https://sendgrid.com
MIT License
1.53k stars 711 forks source link

Dynamic Template Error: sending multiple message to multiple recipents (Python) #909

Closed Ptorres91 closed 4 years ago

Ptorres91 commented 4 years ago

Hello everyone, i'm following this example with python (https://github.com/sendgrid/sendgrid-python/blob/master/use_cases/send_multiple_emails_to_multiple_recipients.md) to send multiple messages to multiple recipents using dynamic templates, but i'm getting this error:

Exception/Log

# TypeError                                 Traceback (most recent call last)
<ipython-input-77-3e8056bd5ca4> in <module>
     10            'url': 'https://example.com/test0',
     11        },
---> 12        subject='Override Global Subject'),
     13     To(email='test+to1@example.com',
     14        name='Example Name 1',

TypeError: __init__() got an unexpected keyword argument 'dynamic_template_data'

What i'm doing wrong?

Thanks

eshanholtz commented 4 years ago

Looks like this is the same issue as #899, which is solved in #908 and will be included in the next release on 2020-06-24