Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

smtp email template

with smtplib.SMTP('smtp.gmail.com', 587) as connection:
    connection.starttls()  # tls = transport layer security (securing our connection)
    connection.login(user=my_email, password=password)
    connection.sendmail(
        from_addr=my_email,
        to_addrs=reciever_mail,
        msg=f"Subject:Your subject goes here

your message goes here and 
this will be on new line"
    )
 
PREVIOUS NEXT
Tagged: #smtp #email #template
ADD COMMENT
Topic
Name
7+2 =