On 2016-04-25 22:37, pannis2...@gmail.com wrote:
> I am trying send email through smtplib
> body = "test"
> message = """\
> From: %s
> To: %s
> Subject: %s
> %s
> """ % (FROM, ", ".join(TO), SUBJECT, body)
Doesn't the email RFC require a blank line between the headers
Hi,
I am trying send email through smtplib
import smtplib
import os
from libs import send_mail_status
send_mail_status('test', False, 'ABCD', os.getcwd())
libs.py has a function as below:
def send_status_mail(name, success, id, dir):
#SERVER = "localhost"
FROM = "localhost"
TO = ["a.