Public | Automated Build

Last pushed: a year ago
Short Description
SMTP Server
Full Description

SMTP Server

clone & modify of

docker run -itd tsutomu7/smtp

import smtplib
from email.mime.text import MIMEText
from email.header import Header
from email.utils import formatdate

charset = 'ISO-2022-JP'
msg = MIMEText('Sample', 'plain', charset)
msg['Subject'] = Header('Test', charset)
msg['From'] = ''
msg['To'] = ''
msg['Date'] = formatdate()
with smtplib.SMTP('') as smtp:
    smtp.sendmail(msg['From'], [msg['To']], msg.as_string())
Docker Pull Command
Source Repository

Comments (0)