from email.MIMEText import MIMETextfrom email import Utilsmessage = """Hello,This is a test message!-- Anonymous"""msg = MIMEText(message)msg['To'] = 'recipient@example.com'msg['From'] = 'Test Sender <sender@example.com>'msg['Subject'] = 'Test Message'msg['Date'] = Utils.formatdate(localtime = 1)msg['Message-ID'] = Utils.make_msgid()print msg.as_string()
Name (required)
email (will not be published) (required)
Website