mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-24 00:49:16 +00:00
fix: Send email pdf deps
This commit is contained in:
parent
5f87d98c31
commit
44bcd6e399
@ -14,7 +14,8 @@ ARG TOOLS=" \
|
|||||||
telnet \
|
telnet \
|
||||||
vim \
|
vim \
|
||||||
postgresql-client-13 \
|
postgresql-client-13 \
|
||||||
wget"
|
wget \
|
||||||
|
poppler-utils"
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
|
@ -141,7 +141,7 @@ class SendMailView(View):
|
|||||||
|
|
||||||
# 4. 发送邮件
|
# 4. 发送邮件
|
||||||
subject = f"{title} 报表"
|
subject = f"{title} 报表"
|
||||||
from_email = settings.EMAIL_FROM
|
from_email = settings.EMAIL_FROM or settings.EMAIL_HOST_USER
|
||||||
to = [email]
|
to = [email]
|
||||||
msg = EmailMultiAlternatives(subject, '', from_email, to)
|
msg = EmailMultiAlternatives(subject, '', from_email, to)
|
||||||
msg.attach_alternative(html_content, "text/html")
|
msg.attach_alternative(html_content, "text/html")
|
||||||
|
Loading…
Reference in New Issue
Block a user