📩 آموزش دسترسی به SMTP در جیمیل بوسیله پایتون
📫 How to Access SMTP in Gmail with Python
from smtplib import SMTP
host="smtp.gmail.com"
port= 587
username= "abc@gmail.com"
password= "abc123"
from_email= username
to_list= ("example1@gmail.com", "example2@gmail.com")
CON= SMTP(host, port)
CON.starttls()
CON.login(username, password)
CON.sendmail(from_email, to_list, "Hey")
CON.quit()
#آموزش #شماره5 #تمرین #کد #جی_میل
#Code #SMTP #Gmail
🐍 @PythonForever
📫 How to Access SMTP in Gmail with Python
from smtplib import SMTP
host="smtp.gmail.com"
port= 587
username= "abc@gmail.com"
password= "abc123"
from_email= username
to_list= ("example1@gmail.com", "example2@gmail.com")
CON= SMTP(host, port)
CON.starttls()
CON.login(username, password)
CON.sendmail(from_email, to_list, "Hey")
CON.quit()
#آموزش #شماره5 #تمرین #کد #جی_میل
#Code #SMTP #Gmail
🐍 @PythonForever