Notify using SMTP for texting

Has anyone used SMTP for texting Alerts using the Notify component / SMTP platform? (ex: [email protected])

I looked at some of the supported texting platforms, they all had charges associated. SimplePush was a one time $4 charge, that’s not bad. Is there another option I need to explore?

Using SMTP works. I got notification loaded. The format is a little off. Just curious what others are doing if any?

you could write a python program for free or try the smtp notifier

Sorry, my post was a little murky.
My goal is text alerts. I look at emails, but text catches my attention right then.
The smtp notifier works for emails and if you use the “email to text” address it will send a text.
But when you look at the text there are other sections besides just the message. My test was using the sun up/down in the notify component document. Are there other texting options?
Any cool examples using the “email to text” option?

If you have a iphone, there is a HA ios app that will handle location and notification to your iphone.


I’ve always used the same here using SMTP but haven’t gotten SMTP working on my Hassio install yet. Interested as well if there are options but that seems the easiest still.

Side note, saw your 405xxxyyy@ information - Another Okie :slight_smile:

I’m in Okie land myself.

Stephen

I am running Hassio, .61.1
Again, SMTP worked fine and I did get a text.

Here is my yaml…

notify:
  - name: TextAlerts
    platform: smtp
    server: smtp.gmail.com
    port: 587
    timeout: 15
    sender: !secret gmail_user
    encryption: starttls
    username: !secret gmail_user
    password: !secret gmail_password
    recipient:
      - !secret text_paul
    sender_name: My Home Assistant
1 Like

Thanks - I’m running my own local SMTP server which should make it easier but not so far…
I may just move it to GMail as well. Thanks!

Use mailx to do it:

echo “My Message” | mailx -S smtp=your.isp.smtpd -r “[email protected]” -s “HASS Test” -v “[email protected]

Use command-line based notify for it. There’s two versions of mailx, the original and the newer one (forgot what it’s called but it’s an apt-installable package) which supports the above options.

If you want to know SMTP configuration for gmail see : https://support.google.com/a/answer/176600?hl=fr

you can use SMTP server on port 25 with aspmx.l.google.com as long as you are only sending to Gmail users.

Otherwise, you need authentication.