body = "my first email from esp8266"
server = "mail.smtp2go.com"
port = 2525
user = "xxxxxxxxx"
password = "xxxxxxx"
sendto ="xxxxxxxxxx"
sendfrom ="xxxxxxxx"
mess = "Email test"
setupemail server port user password
button "Send Email" [SendEmail]
button "Exit " [getout]
wait
[SendEmail]
email sendto sendfrom mess body
wait
[getout]
end