Set Email Function

You can configure E-Mail properties with these commands:


mail_server, mail_port, mail_user, mail_pass, mail_set, mail_usbcam_send, mail_noIRcam_send

below you will find the description of each individual command.


mail_server (SMTP_SERVER)

mail_port (PORT)

mail_user (@USERNAME)

mail_pass (@PASSWORD)

mail_set

send image from email:

mail_usbcam_send target@email.xxx

mail_noIRcam_send target@email.xxx


mail_cam_send (DESTINATION EMAIL)

Send photo image to 'DESTINATION EMAIL'

Example

#Config Email Server
mail_server smtp.gmail.com
mail_port 587
mail_user youremail@gmail.com
mail_pass your_password
mail_set
#
#Call from IO_check
make_sub send
sub send mail_usbcam_send destination_email@server.xx
#or
#sub send mail_noIRcam_send destination_email@server.xx
#
#Config Hardware Button connected to Rpi GPIO pin 23
IOT_object push_btn in 23 15 pull_up
IOT_check push_btn in equal 1 CALL send
#...
#
end_script
Powered by Sgneep.com