“Smtp python” Réponses codées

Authentification par e-mail Python

import smtplib

server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.login("your username", "your password")
server.sendmail(
  "[email protected]", 
  "[email protected]", 
  "this message is from python")
server.quit()
Awful Addax

Smtp python

# Does not work with gmail, for that use SMTP_SSL
from smtplib import SMTP
with SMTP("domain.org") as smtp:
     smtp.noop()
Active Programmer

Réponses similaires à “Smtp python”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code