There was an error while loading. Please reload this page.
1 parent 8f72cbf commit ccacfb2Copy full SHA for ccacfb2
1 file changed
blueprint/[[app_name]]/emails/base_email.py
@@ -11,4 +11,8 @@ def send_later(self, *, via=None, **options):
11
`MAILERS` (by name). Defaults to the configured default mailer.
12
"""
13
self.update(**options)
14
+ # Render the template now: the worker only receives the serialized dict,
15
+ # so it can no longer render the body. Mirrors `EmailMessage.send()`.
16
+ if not self.body:
17
+ self._render()
18
send_email_task(message=self.serialize(), via=via)
0 commit comments