Skip to content

Email

The Email page contains SMTP client configuration for sending emails from the Watchdog and Events functions.

Email

Page elements

Form with the following fields:

  • SMTP server address
  • server port
  • use TLS, added in HW 3.5+ SW 1.19
  • username
  • user password
  • recipient
  • sender
  • subject of the message
  • content of messages for use in Events
  • buttons to save and test the entered settings by trying to send a test message

How to use Gmail with LC3

Be sure to update the firmware at least to the HW 3.5+ SW 1.43c version, which includes the fix needed for the correct handling of TLS connection with Google servers.

Less secure app access

As of May 30, 2022, Google has disabled the "Less secure app access" feature (more details here). Therefore, in order to use the Gmail account in Lan Controller, you should use app passwords (described below). The instructions in this section are provided for informational/historical purposes only and should not be used anymore.

Sign in to your Google account.

Go to Security tab and scroll down to section Less secure app access. Enable this function.

Google setup 1

Open LC3's page in browser, go to Email tab. Complete the form with your credentials, so it will look similar to image below. After saving you can try to send test email by using Test email sending button.

Google setup 2

2-Step Verification and App passwords

To send emails via a Gmail account from Lan Controller, you need to use App passwords. To be able to use them, it is required to enable 2-Step Verification (2FA).

Sign in to your Google account and then go to Security & sign-in tab.

Google - 2-Step Verification

In the How you sign in to Google section, select 2-Step Verification. Then, in that section, at the bottom, you should see App passwords. If not, you may try the direct link to the section at https://myaccount.google.com/apppasswords, otherwise, see Google support article for details.

Google - 2-Step Verification and App passwords

In the App passwords follow the instructions - give a name for the application, e.g., Email on LK, and click Create. As a result, a new window will appear with the generated password, which should be copied and pasted into the Password field in the Email tab on LK (other settings are similar to the first picture on this page). After saving the settings, sending emails can be tested.

Notes

Email function and other LK functions requiring TLS

Sending an email with TLS enabled may not work properly when HTTPS is also enabled on the LK web server (Network tab) and TLS in the MQTT client. This only applies to active connections, i.e. when the web server is polled (e.g. the page is displayed in a browser) and the MQTT client is connected.