Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Python sends email Mini Program

Shulou Source: shulou.com Published: 2022-06-01 05:04:32 10月04日 Update

First, use QQ Mail to receive and send mail

1. Program code:

Smtplibemail.mime.text MIMEText_user = _ pwd = _ to = msg = MIMEText () # message content msg [] = msg [] = _ user # sender mailbox msg [] = _ to # recipient mailbox: s = smtplib.SMTP_SSL (,) # Log in to s.sendmail (_ user) # using SSL s.login (_ email) # _ to,msg.as_string () # send email s.quit () smtplib.SMTPException,e:% e

Tags: Mail mailbox program code content sender receiver login Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker Microsoft Shulou Technology vpn