@@ -0,0 +1,516 @@
+import smtplib%0Aimport email.utils%0Afrom email.mime.text import MIMEText%0A%0Amsg = MIMEText('This is the body of the message.')%0Amsg%5B'To'%5D = email.utils.formataddr(('Recipient', 't2@example.com'))%0Amsg%5B'From'%5D = email.utils.formataddr(('Author', 'x@example.com'))%0Amsg%5B'Subject'%5D = 'Simple test message'%0A%0Aserver = smtplib.SMTP('127.0.0.1', 25)%0Aserver.set_debuglevel(True) # show communication with the server%0Atry:%0A    server.sendmail('author@example.com', %5B't1@example.com'%5D, msg.as_string())%0Afinally:%0A    server.quit()%0A    

add smtp client test