We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc14d3 commit 0186f41Copy full SHA for 0186f41
codeforlife/user/models/user.py
@@ -186,9 +186,18 @@ def remove_contact_from_dot_digital(self):
186
mail.remove_contact(self.email)
187
188
# pylint: disable-next=arguments-differ
189
- def email_user(self, campaign_id: int, **kwargs): # type: ignore[override]
+ def email_user( # type: ignore[override]
190
+ self,
191
+ campaign_id: int,
192
+ personalization_values: t.Optional[t.Dict[str, str]] = None,
193
+ **kwargs,
194
+ ):
195
kwargs["to_addresses"] = [self.email]
- mail.send_mail(campaign_id=campaign_id, **kwargs)
196
+ mail.send_mail(
197
+ campaign_id=campaign_id,
198
+ personalization_values=personalization_values,
199
200
+ )
201
202
203
# pylint: disable-next=missing-class-docstring,too-few-public-methods
0 commit comments