We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fab7077 commit c1b221bCopy full SHA for c1b221b
libreforms_fastapi/utils/smtp.py
@@ -31,7 +31,7 @@ def send_mail(
31
cc_address_list:str|list=[],
32
logfile=None,
33
reply_to_addr=None,
34
- # body_type="plain",
+ body_type="plain",
35
# parse_to_addr_as_list:bool=False,
36
):
37
@@ -92,8 +92,7 @@ def send_mail(
92
93
msg['Reply-To'] = reply_to_addr if reply_to_addr else self.from_address
94
95
- # msg.attach(MIMEText(content, body_type))
96
- msg.attach(MIMEText(content, 'plain', 'utf-8'))
+ msg.attach(MIMEText(content, body_type, 'utf-8'))
97
98
# part = MIMEText(file_content, body_type, 'utf-8')
99
# part = MIMEText(content, 'plain', 'utf-8')
0 commit comments