mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +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,
|
||||
)
|
||||
|
||||
smtp.send_message(
|
||||
msg,
|
||||
from_addr=alias,
|
||||
to_addrs=[forward_email.website_email],
|
||||
mail_options=envelope.mail_options,
|
||||
rcpt_options=envelope.rcpt_options,
|
||||
msg_raw = msg.as_string().encode()
|
||||
smtp.sendmail(
|
||||
alias,
|
||||
forward_email.website_email,
|
||||
msg_raw,
|
||||
envelope.mail_options,
|
||||
envelope.rcpt_options,
|
||||
)
|
||||
|
||||
ForwardEmailLog.create(forward_id=forward_email.id, is_reply=True)
|
||||
|
|
Loading…
Reference in a new issue