Skip to main content

Gmail Server Configuration

  1. Open HSYCO Manager

  2. Go to "Settings"

  1. Click on "System"

  1. Select the "EMail" tab

  1. Set "SmtpName" to "smtp.gmail.com"

  1. Set "SmtpPort" to "465"

  1. Write your Gmail in the "SmtpUser"

Alert: Now we need to generate a password through Google Passwords

  1. Enable two-factor authentication through this link: https://myaccount.google.com/signinoptions/two-step-verification/enroll-welcom

  2. Now go to this link: https://myaccount.google.com/apppasswords

  3. Click "Select app"

  1. Select "Mail" from the "Select App" dropdown menu

  1. Select "Other" from the "Select Device" menu

  1. Write "Hsyco" and click "Generate"

  2. Now copy the generated password

  1. Paste it in the "SmtpPassword" field

  1. Set "SmtpSSL" to true

  1. Click "Save"

  1. Click "Save" again and wait for HSYCO to restart

Now we'll write some code to send an email message through EVENTS

  1. Go to "Code Editor"

  1. Click "New Events File"

  1. Give it a name ("gmail.txt" for example) and click "New File"

  1. Copy the following line and save the file:\
HSYCOSTART : MAIL "receivermail@gmail.com" = "yourmail@gmail.com" "HSYCO" "HSYCO IS ONLINE"

What this does is it sends an email message to "receiveremail@gmail.com" from "yourgmail@gmail.com" with a subject and the body of the message when HSYCO starts. The format of the command is:

MAIL to = from subject body

It is also possible to send the same email to a space separated list of email addresses or also send images or live frames in the body of the message