Sending EMAIL (simple)
A simple example to show how to send out an email on a state change.
Whenever relay 1 changes state an email is sent - very contrived to keep it simple.
Brett
Attachment | Size |
---|---|
simpleEmailApplet.lua | 797 bytes |
Anyone? I don't know whether to persevere or give up. Gmail seems to require "SSL"
thanks
John
Brett
You're a superstar. I fiddle around a bit with VB net and some PHP and I'm in awe of how quickly you can provide a solution to our problems. When I suggested the sunrise/sunset scenario you had a solution in about an hour!! I hope others find this useful. One use I have for email is to send SMS via an email to sms service. Maybe Twitter provides a better solution, I have never used it.
All works well, but a couple of things
The GUI makes an entry in the ini file "passwd", should that be "password"
also
I get a response:-
Error Message: A xAP message received was malformed. Object reference not set to an instance of an object.
Received From: 10.0.0.40:59203
xap-header
{
target=dbzoo.livebox.Mail
class=email
}
message
{
to=*******@gmail.com
subject=How is your lamb?
text=I'll be around for dinner tonight at 6pm
}
Not sure what that means..
thanks again
John
Thanks Brett
Works perfectly now
Is it possible to adapt the script use an email account that requires SSL authentication?
Hi
I've been trying to get this script to work using my Gmail credentials. Tried port 465 and 587. I've had no success. Anyone else?
thanks
John