MIMEMultipart, MIMEText, MIMEBase, and payloads for sending email with file attachment in Python
E-mail messages An e-mail message consists of headers (e.g. “From”, “To”, “Subject” etc.) and body (see RFC 822, section 3.1). The body of the message is, by default, treated as plain ASCII text. MIME (RFC 2045, RFC 2046, RFC 2047, RFC 2048, RFC 2049) defines extensions which allow specifying different types of email content. One … Read more