Alerts and Email Gateway with SendGrid

Introduction

If delivering email to only one recipient, consider using the eGuard Alert Service to send device alerts as it is the easiest method for delivering email alerts.

You will need your own website's email address to send email from; Gmail, Yahoo, AOL and other public email services may not work with this method.

SendGrid is a free third party service unaffiliated with eGauge which provides a consistent outbound email delivery service. It can be used for eGauge alert delivery, and is more reliable than not having any "Email Gateway" information entered. Without an "Email Gateway" configured, alert emails may be rejected, dropped, or fail inconsistently.

It is intended as a commercial service for businesses rather than individual end users.

SendGrid allows up to 100 emails daily with the free plan.

SendGrid provides delivery information and monitoring such as email delivery failures, number of emails sent and other features.

 

Disclaimer

SendGrid is a third party email delivery service with no affiliation with eGauge Systems. eGauge Systems cannot guarantee email delivery, uptime, or security of using SendGrid.

Information on this page will be updated on best effort level. Information including pricing, set up instructions, screenshots, and locations of items are not guaranteed to be up to date or consistent.

eGauge Systems does not provide any support for SendGrid's services, and cannot assist with account creation, password recovery, or similar issues.

Pre-setup notes

Ensure the eGauge meter used is on firmware v4.0 or greater, click here for information on checking and upgrading firmware.

Email can be delivered from the eGauge meter using SMTP server smtp.sendgrid.com and a sendgrid API key.

API keys are passwords and are displayed only once after creation.

Setup

  1. Set up API keys:
    Initial account creation and setup wizard for first email
        or
    Adding a second API key, or adding without the wizard from the main dashboard
  2. Verify a sender identity
  3. Configure the eGauge meter

 

Initial account creation and setup wizard for first email

  1. Create an account at https://sendgrid.com/

  2. Click "Start" to the right of "Integrate using our Web API or SMTP relay"

  3. In "Choose a setup method", choose "SMTP relay"


  4. Give the API key a name, like "eGauge Alerts Emails" and press "Create Key"


  5. You will now be given the SMTP server (smtp.sendgrid.net), the username (apikey), and password (hidden). This is the only time the password will be displayed, it should be saved somewhere securely like an encrypted keychain if it will be used more than once. Keep this page open or copy the password as it will be used in a later step.

Adding a second API key, or adding without the wizard from the main dashboard

  1. In the main dashboard on the left-side menubar, expand Settings and click API keys.

    image-1657573543458.png

  2. Click "Create API Key" in the upper right-hand corner:
    image-1657573663515.png
  3. Choose "Restricted Access" as the API key permissions, expand the "Mail Send" section, and click the dot on the right side of the bar next to "Mail Send" to grant that permission


  4. Click "Create and View", and copy the API key displayed on the next screen. This will be used to configure the eGauge meter in a later step.

Verify Sender Identity

You will need to set up Sender Authentication so the receiving email server trusts and accepts the email the eGauge meter delivers. Follow the instructions for Single Sender Authentication (simple: sends an email link to verify email address) or Domain Authentication (advanced: requires modifying DNS entries on your website).

Without sender authentication, you will see an error such as The from address does not match a verified Sender Identity when sending a test email without verification completed. It will contain a link with information to set up sender authentication.

The email address you verify will be used in the Custom "From" address setting in the eGauge meter alert settings.

 

Configure the eGauge Meter

  1. Navigate to Settings -> Alerts, ensure "Alert Provider" is set to "SMTP Gateway" and click on "View/Edit Gateway & Alert Destinations". Enter the mail server hostname (smtp.sendgrid.com), username (apikey), and the API key / password that was created previously. For the Custom "From" Address, enter an email identity verified in the previous step.

    image-1657575198734.png
  2. Enter the email address(es) that should receive alerts from the meter under Alert Destinations.

    image-1657575742987.png

  3. Press "Save" at the bottom of the page, and then "Send Test Message" to the right of each Alert Destination to ensure the delivery works.

 


Revision #15
Created Mon, Feb 17, 2020 9:07 PM by Andrew
Updated Mon, Jul 11, 2022 9:57 PM by aaron