Used script:
import config # typical values for text_subtype are plain, html, xml text_subtype = 'plain' from email.mime.text import MIMEText msg = MIMEText(text, text_subtype) msg['Subject'] = subject msg['From'] = config.sender msg['To'] = config.to_email msg['Cc'] = ', '.join(config.to_cc_emails) from smtplib import SMTP with SMTP(config.smtp_server) as smtp: smtp.set_debuglevel(config.debug_smtp) smtp.starttls() smtp.login(config.username, config.password) smtp.send_message(msg) Tested on mail.ru and corporate mail. Simply, if you send a letter through the client or web page of the mail, then the letter sent is there.
Tell me how to send an email script and see it in the outbox.
update. You can get around the problem with a crutch if you send from gmail - it will automatically add the letter to the sent email folder.