mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 08:58:30 +01:00
use sendmail instead of send_message in reply phase to avoid unicode problem
This commit is contained in:
parent
572ce1de57
commit
b0f4ab8a6d
1 changed files with 7 additions and 6 deletions
|
@ -237,12 +237,13 @@ class MailHandler:
|
||||||
envelope.rcpt_options,
|
envelope.rcpt_options,
|
||||||
)
|
)
|
||||||
|
|
||||||
smtp.send_message(
|
msg_raw = msg.as_string().encode()
|
||||||
msg,
|
smtp.sendmail(
|
||||||
from_addr=alias,
|
alias,
|
||||||
to_addrs=[forward_email.website_email],
|
forward_email.website_email,
|
||||||
mail_options=envelope.mail_options,
|
msg_raw,
|
||||||
rcpt_options=envelope.rcpt_options,
|
envelope.mail_options,
|
||||||
|
envelope.rcpt_options,
|
||||||
)
|
)
|
||||||
|
|
||||||
ForwardEmailLog.create(forward_id=forward_email.id, is_reply=True)
|
ForwardEmailLog.create(forward_id=forward_email.id, is_reply=True)
|
||||||
|
|
Loading…
Reference in a new issue