Mail

javadoc

 

Mail service is usefull to send emails using SMTP protocol ( ssl or tls )

Follow the syntaxe in the exemple, bellow :

Examples:


#file : service/Mail.py edit raw
# start the service
mail = Runtime.start("mail","Mail")
mail.username="who@domain.com"
mail.password="yourpassword"
mail.from=mail.username
mail.to="who@domain.com"
mail.smtpServer="smtp.gmail.com"
mail.smtpServerPort"465"

mail.subjet="test"
mail.body="body test"

mail.sendMailSSL()