Fix in email
This commit is contained in:
parent
e2554b7539
commit
81c5b2aa99
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ from email.mime.base import MIMEBase
|
||||||
from email.mime.image import MIMEImage
|
from email.mime.image import MIMEImage
|
||||||
from email.mime.multipart import MIMEMultipart
|
from email.mime.multipart import MIMEMultipart
|
||||||
from email.mime.text import MIMEText
|
from email.mime.text import MIMEText
|
||||||
from email.utils import formataddr
|
from email.utils import formataddr, formatdate
|
||||||
import ssl as ssl_module
|
import ssl as ssl_module
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
@ -184,6 +184,8 @@ class SendMail:
|
||||||
|
|
||||||
outer['To']=COMMASPACE.join(to_address)
|
outer['To']=COMMASPACE.join(to_address)
|
||||||
|
|
||||||
|
#outer['Date']=formatdate()
|
||||||
|
|
||||||
# Attach message text
|
# Attach message text
|
||||||
|
|
||||||
msg=MIMEText(message, content_type)
|
msg=MIMEText(message, content_type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue