When I click on the send button, a wizard will be displayed.
I have a list of partners (partners--->[18, 3, 19, 17]). I want them to be added automatically in the "Recipients" field of the wizard. And, the mail will be sent to all of them.
But, I got this error :
email_values={'email_to': user.email})
AttributeError: 'int' object has no attribute 'email'
Any help please??
My code :
for user in partners:
mail_template.send_mail(self.id, force_send=True,
raise_exception=True,
email_values={'email_to': user.email})