1.jpg: you gottsa have tuicemens "smart_E-mailer program installed and running... (check mark on right)
1.jpg: you gottsa have E-Mail Account setup and running
1.jpg: you might want a TEST email on demand program like this "Send Test E-mail"
Inside test email program:
PROGRAM CODE: cc and paste:
// CSharp Automation Program Plugin
// when the switch ON is pressed, a test e-mail is sent
var subject = "HomeGenie Test E-Mail";
var recipients = Program.InputField("Email.Recipients").Value;
var messageText = Program.InputField("Email.Message").Value;
if ((recipients != "") && (messageText != ""))
{
Program.RunAsyncTask(() => {
if (Net.SendMessage(recipients, subject, messageText) == true)
Program.Notify("E-Mail Test", "SUCCESS! Test E-Mail sent.");
else Program.Notify("E-Mail Test", "ERROR: Test E-Mail **NOT** sent.");
});
}
else
Program.Notify("E-Mail Test", "ERROR: Missing input field(s) - recipients and/or message text.");
STARTUP CODE: cc/paste:
// Put your trigger code logic here.
// To execute the Code To Run,
// use a 'return true' or 'return false' otherwise.
Program.AddInputField("Email.Recipients", "", "Comma separated list of recipients e-mails that will get a test e-mail");
Program.AddInputField("Email.Message", "Just a HomeGenie Test", "E-mail message");
// add a push button widget - push it once and the e-mail is sent
Program.UseWidget("homegenie/generic/program");
// this program will NOT be running in background
return false;
------------------------------------ then you can RUN this test program anytime by clicking on ACTIONS bottom right and pick RUN