Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cc_address = cc_address
- bcc_address = bcc_address
- post_name = post_name
- text = text
- msg = MIMEText(text, 'plain', charset)
- subject = subject
- msg['Subject'] = Header(subject.encode(charset), charset)
- msg['Return-Path'] = from_address
- msg['From'] = u"%s <%s>" % (str(Header(post_name, charset)), from_address)
- msg['To'] = to_address
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement