New Email Notification driver for sending email alerts!

We’re excited to introduce the new Email Notification driver for Hubitat Elevation! This driver allows users to send alert emails through several popular email delivery providers.

The driver is available now, with recently released 2.5.0.153 version.

Once configured, the driver appears as a standard notification device, allowing email alerts to work seamlessly alongside push notifications, Pushover, speech devices, and other notification methods you may already be using.

Supported Providers

The initial release includes support for:

  • Brevo
  • Mailjet
  • Resend
  • Mailgun
  • SMTP2GO
  • MailerSend
  • Postmark
  • Custom SMTP server

Brevo is selected as the default provider because it offers a generous free tier that works well for most home automation notification needs. If you already use another provider, or simply prefer a different service, you can easily switch to any of the supported options.

Why These Providers?

The goal of this integration is flexibility and accessibility. The supported providers were selected because they offer practical free-tier or small-scale plans suitable for home automation alerts.

For users with higher notification volumes, these services also offer paid plans with expanded capabilities. Hubitat does not receive any commission or revenue from these providers.

How Configuration Works

At the top of the driver settings page, you can select your preferred email provider.

Before configuring the driver, you will need to create an account with your chosen provider and obtain the required API key or credentials from that provider’s dashboard.

Once selected, the driver dynamically displays the configuration options specific to that provider. Each provider maintains its own independent settings, including:

  • Sender address
  • Recipient addresses
  • Default subject
  • Authentication credentials

This approach helps prevent accidentally reusing incorrect credentials or sender information when switching between providers.

For convenience, the driver also includes a direct login link for the selected provider, making it easy to create or manage your account.

Configuration Status

Settings can be saved even if configuration is incomplete, making it easier to switch providers or complete setup gradually.

A dedicated status field indicates the current configuration state:

  • Not configured
  • Invalid configuration
  • Configured
  • Sent

If setup is incomplete or invalid, the status field will provide guidance on what still requires attention.

Notification Type

The Email Notification driver is designed specifically for plain-text alert emails and notifications.

As always, feedback and suggestions are welcome!

14 Likes

You can use a Gmail account as custom SMTP server. Follow these ChatGPT instructions:

BONUS

Some wireless customers, can also use this driver to send SMS messages.

Check out these ChatGPT instructions:

Many thanks to @rlithgow1 for suggesting to add the custom SMTP servers to the Email Notification Driver.

10 Likes

@bobbyd

Can you use any smtp server or does it have to be gmail?

Any, Gmail is just an example.

4 Likes

Is there a way to change the subject on a per-notification basis?

In the other (existing) drivers that implement sending email for notifications, you can set a per-message Subject: by prefixing the message with "Subject:" and ending the subject with a comma.

E.g., "Subject: this is the subject,This is the body"

i dont see a custom option in the driver. that would be nice

here is mine .. no custom option

Coming in 2.5.0.153

:warning: restricted beta post:
https://community.hubitat.com/t/2-5-0-152-email-notification-driver-c7/164424/2?u=jlv

2 Likes

Coming soon to a hub near you.

4 Likes

An important caveat with Brevo is that if you don't use the API key at least once every 90 days, it gets deactivated! I only noticed when I saw this notice in the API create dialog. Initially I was happy I could set the key to never expire.

API keys also expire after 90 days of inactivity, regardless of the set expiry date.

If you were to use Brevo, I would suggest a rule that sends a monthy test notification.

2 Likes

You have the option when you create the key to set it up to "never expire". I wonder if that's what they mean by "regardless of the set expiry date" :eyes:

The driver is available now, with recently released 2.5.0.153 version.

3 Likes

Due to how many people use it, I would recommend making Gmail it’s own separate selection within the options. Yes, it can be configured using Custom (and no, I rarely use it since I have my own email service)… but having it right there as one of the primary ones will make it a lot easier for average users.

8 Likes

tested without tls with login and without .. worked fine to my server.. thanks

how does it handle concurrency ie 10 alerts going out at once.. i had to use semiphores in my driver as smtp is stateful?

2 Likes

The driver has singleThreaded: true, so it will send emails one after another.

3 Likes

hopefully that works when i tried that it didnt. that is why mine has two drivers.. one to queue responses and childen to fire off the actual work..

Just got this added and seeing some errors when I set it up with Proton SMTP Submission. Not sure if it’s my setup or just not supported with the driver…

It’s just Protonmail’s take on SMTP servers, much like what’s already supported. Would be fantastic if we can get this working. Regardless, nice add to the platform!

edit: @bobbyD just an fyi.

It is great to see this as a supported service!

Um, perhaps “check out” the accuracy of anything that ChatGPT recommends before posting…T-Mobile let the service degrade in 2024 and discontinued email to text about 6 months ago.

4 Likes

@bobbyD

I tried to configure this for my Google Workspace domain:

image

Not sure what it’s unhappy about??

It's still working for me. But it's always good to test the validity of ChatGPT recommendations. :wink:

Do you have a link to the official announcement?
T-Mobile has been trying to kill the service for many years, but to my knowledge, there was no official announcement about its suspension.

To test, make sure no subject line is sent.