|
|
|
|
279
|
message.attach(part2)
|
279
|
message.attach(part2)
|
280
|
|
280
|
|
281
|
message_str = message.as_string()
|
281
|
message_str = message.as_string()
|
282
|
- asyncjob_perform(async_email_sender.send_mail, message)
|
|
|
|
|
282
|
+ # asyncjob_perform(async_email_sender.send_mail, message)
|
|
|
283
|
+ # FIXME: Temporary hack to enable email sending in
|
|
|
284
|
+ # uwsgi/prod environment
|
|
|
285
|
+ async_email_sender.send_mail(message)
|
283
|
# s.send_message(message)
|
286
|
# s.send_message(message)
|
284
|
|
287
|
|
285
|
# Note: The following action allow to close the SMTP connection.
|
288
|
# Note: The following action allow to close the SMTP connection.
|
286
|
# This will work only if the async jobs are done in the right order
|
289
|
# This will work only if the async jobs are done in the right order
|
287
|
- asyncjob_perform(async_email_sender.disconnect)
|
|
|
|
|
290
|
+ # FIXME: Temporary hack to enable email sending in
|
|
|
291
|
+ # uwsgi/prod environment
|
|
|
292
|
+ # asyncjob_perform(async_email_sender.disconnect)
|
288
|
|
293
|
|
289
|
|
294
|
|
290
|
def _build_email_body(self, mako_template_filepath: str, role: UserRoleInWorkspace, content: Content, actor: User) -> str:
|
295
|
def _build_email_body(self, mako_template_filepath: str, role: UserRoleInWorkspace, content: Content, actor: User) -> str:
|