Javadoc link

 

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

Follow the syntaxe in the exemple, bellow :

Example code (from branch develop):
#file : Mail.py (github)
#########################################
# Mail.py
# more info @: http://myrobotlab.org/service/Mail
#########################################
 
# 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()
Example configuration (from branch develop):
#file : Mail.py (github)
!!org.myrobotlab.service.config.ServiceConfig
listeners: null
peers: null
type: Mail