0.4.69 send_mail fix
This commit is contained in:
@@ -145,8 +145,8 @@ def send_mail_by_SMTPlib(sets, subject, from_email, to_init, html_content, smtp_
|
|||||||
res = None
|
res = None
|
||||||
|
|
||||||
if type(to) in (list, tuple):
|
if type(to) in (list, tuple):
|
||||||
if sets['sender_email'] in to:
|
# if sets['sender_email'] in to:
|
||||||
to.remove(sets['sender_email'])
|
# to.remove(sets['sender_email'])
|
||||||
|
|
||||||
if len(to) > 1:
|
if len(to) > 1:
|
||||||
to_str = u', '.join(to)
|
to_str = u', '.join(to)
|
||||||
|
|||||||
Reference in New Issue
Block a user