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

list index out of range #77

Open
vinay-vik opened this issue Oct 26, 2016 · 0 comments
Open

list index out of range #77

vinay-vik opened this issue Oct 26, 2016 · 0 comments

Comments

@vinay-vik
Copy link

I have written a code to generate mails for multiple recipients using the following code.

sendGridEmail = SendGridEmailMultiAlternatives(subject,message,from_email,recipient_list)
sendGridEmail.attach_alternative(mail_content, "text/html")
sendGridEmail.sendgrid_headers.addTo(to_send_email_list)
sendGridEmail.sendgrid_headers.addSubVal('%investor%', name_list)
sendGridEmail.update_headers()
response = sendGridEmail.send()

where recipient_list is empty and I want to update recipient_list using sendgrid_headers.addTo(to_send_email_list). I am not able to send mail because of empty list(recipient_list). Is there any way to update sendgrid_headers.addTo and send mails.

Thanks

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