import smtplib
server = smtplib.SMTP('smtp.free.fr', 587) # 465

#Next, log in to the server
server.login('patrice.delpy', '0ghumsaz')

#Send the mail
msg = "\nHello!" # The /n separates the message from the headers
server.sendmail("patrice.delpy@free.fr", "0ghumsaz", msg)
