Sendmail - Send email and text notifications, (notification device) no local server needed

@kahn-hubitat ...

I'm sending texts from a couple apps and it's getting cut off. I guess I never tried to send messages as long as what I'm sending. Just wanted to confirm that is expected...cut-off is consistenly at 140 characters/spaces rather than 160.

Example:

These doors and windows are still open.Contacts: Door family room slider, Garage Door, Lock Living Rm Slider South, Door Dryer, Window Offic

Thanks.

1 Like

Thanks for checking - it's as you suggested, Verizon must be cutting it off, the whole message is in the logs. I get longer texts so VZW must not be treating email>text the way they treat "real" texts.

I was testing an outlier case, so I don't think it will be an issue in normal use. :slight_smile:

Just a heads up on something that popped up after a year of using one of our HE emailing community apps with my cell provider.

The ever increasing "intelligence" of SPAM filtering can put the kabash on what you're doing IF:

.....the email account name you are doing the SMTP email send FROM to yourcellphone#@yourcellprovider.xxx happens to be "too generic (abused) for their liking".

For example, email from such email addresses as: info@, admin@, relay@ might suddenly be getting dumped by overambitious filtering on their end.

And they won't make exceptions, even after talking to someone at a Tech Level that can see exactly why your emails are getting blocked, ...thanks T-Mobile.

Haven't seen that yet on VZW...I'm using an ISP email address so it looks "normal" hopefully, and won't get tagged. Thanks for the info.

Hi folks, I hate to jump into an active conversation, and also hate piling onto such a long thread. However, I'm having an issue and hoping someone might be able to offer suggestions.

I just got a Hubitat C-7, and am trying to set it up to send out email notifications, from this device through an SMTP server I control. I tried installing the sendmail driver and creating a device, with advice from @aaiyar . However, I'm getting some errors, and am not sure the cause or what to try next. Here is a log snippet:


(URLs/URIs masked)

It seems that on the SMTP server, I'm seeing sendmail connect via telnet, then disconnect without actually trying to send anything. I'm seeing no server-side errors. On Hubitat, I'm seeing HTTP 220 and 421 codes, and what looks like maybe a syntax error. I'm also wondering if it might be misinterpreting the server's MOTD/welcome message as being something else entirely.

I have tried many variations for configuration, but had no success so far (although I've found new ways to break it). One remaining question: the auth creds I enter for the SMTP server should be base64 encoded by me, right? (It's not saying that sendmail will do it, right?)

Any suggestions?

(I started this discussion in this other thread, and was directed to come here.)

I need to see the initial server response that was blacked out.. but in general responses need to be number codes and it look like your server is not sending a number response code back.

Also looks like you used the wrong command from the device panel to test. This does not implment sendmessage but notification message

It has been a long time but new version 4.01 now on github.

Someone posted a thread on github where they found a bug where i misspelled lastCommand.. When fixed it brought to light some missing 250 checks..

1 Like

I can send you the original via PM if that would be helpful, although perhaps that isn't relevant at this point.

Ah yes, you are quite right. I was in the "throw everything at the wall and see what sticks" phase of troubleshooting (also known as "sheer desperation bordering on insanity"). I seem to have been looking at the wrong log snippet. I ran it again, two more times using the "Send Msg" button. Each time posted just this single error to the log. Here are both occurrences:

Want me to try updating the driver, and see if that helps?

I just tried out the driver using my TWC Email. Example: XXXXX@woh.rr.com using my userid and password. It worked great. No other parameter changes were required. Thanks.

Ron

Ok, I replaced the driver code, and am still getting this error.

@kahn-hubitat, Thank you vey much. If you supply an account I would send you a donation to buy you a 6 pack of your favorite drink.

I am newer to Hubitat, coming from ST where SMS was built in for US users. My use case was to notify others without installing and setting up an app they don't need as well as setting up my phone so these notifications can bypass my cellphone quiet time and silent settings. Thanks.

If it hasn't been mentioned already it would be nice to be able to enter multiple To addresses separated by a comma or something. I'm using this where I work along with Google's SMTP Relay. I'm going to see if I can't modify the code to accommodate multiple addresses.

Actually, I just realized the better way is simply to create multiple devices for each recipient. That way they can be individual selected when setting up the notifications. Only downside is having to set the email server for each.

1 Like

That's what I prefer, separate devices/person, so I can control who gets what notifications at the individual level. Takes a few more seconds to set up, but better use experience.

1 Like

Hi. My notifications have mostly failed in the last several days.
I installed the latest update, but no joy.
It was working so great too.
Here is one screen copy of a log when I tried to send a message from the device screen:

Odd...I didn't notice until I saw your post, but I just checked and saw that the last notification I received was on Tuesday.

I tested a door opening notification just now and it looks like mine aren't working either.

I'm on Verizon using Spectrum email address>phone text number for the notifications.

I tried substituting my email address instead of text, and it also failed with the same message.

Pushover still working fine.

I'm also using Spectrum email, ATT for mobile.

This is all I get in Logs from Sendmail when starting an action that sends a text.

However, sending from the device page I get this error:

I sent a text to my phone via email, so that works.