SMS Phase out

Wrong... the OS is a linux deviant of debian according to many sources thus any sort of mail program can be used.. postfix, sendmail and even the build-in mail command.

nmap -sV -O hub-ip

TCP/IP fingerprint:
OS:SCAN(V=7.70%E=4%D=7/27%OT=80%CT=1%CU=40863%PV=Y%DS=2%DC=I%G=Y%TM=5D3BFED
OS:B%P=x86_64-pc-linux-gnu)SEQ(SP=109%GCD=1%ISR=110%TI=Z%CI=I%TS=7)SEQ(SP=1
OS:09%GCD=1%ISR=110%TI=Z%TS=7)SEQ(SP=109%GCD=1%ISR=110%TI=Z%CI=RD%II=I%TS=7
OS:)OPS(O1=M5B4ST11NW7%O2=M5B4ST11NW7%O3=M5B4NNT11NW7%O4=M5B4ST11NW7%O5=M5B
OS:4ST11NW7%O6=M5B4ST11)WIN(W1=7120%W2=7120%W3=7120%W4=7120%W5=7120%W6=7120
OS:)ECN(R=Y%DF=Y%T=41%W=7210%O=M5B4NNSNW7%CC=Y%Q=)T1(R=Y%DF=Y%T=41%S=O%A=S+
OS:%F=AS%RD=0%Q=)T2(R=Y%DF=Y%T=41%W=0%S=Z%A=S%F=AR%O=%RD=0%Q=)T3(R=Y%DF=Y%T
OS:=41%W=0%S=Z%A=O%F=AR%O=%RD=0%Q=)T4(R=Y%DF=Y%T=41%W=0%S=A%A=Z%F=R%O=%RD=0
OS:%Q=)T5(R=Y%DF=Y%T=41%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T=41%W=0%S
OS:=A%A=Z%F=R%O=%RD=0%Q=)T7(R=Y%DF=Y%T=41%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)U1(R
OS:=Y%DF=N%T=41%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R=Y%DFI=N
OS:%T=41%CD=S)

Notice on the second line is says x86_64-pc-linux-gnu

The web server is Jetty

80/tcp open http Jetty 9.4.z-SNAPSHOT
443/tcp open ssl/http Jetty 9.4.z-SNAPSHOT
8080/tcp open http Jetty 9.4.z-SNAPSHOT
8081/tcp open http Jetty 9.4.z-SNAPSHOT
8443/tcp open ssl/http Jetty 9.4.z-SNAPSHOT

You took that sentence completely out of context. Read the whole post this time. If you have a way to send mail natively from Hubitat today, I'd love to see it.

2 Likes

Actually the OP asked this. Linux already has a smtp software. It's just a matter of adding that function to groovy.

So first sentence answer it's already there. Now HE just needs to support that java class and yes there is one.

Or you can use one of the solutions that works today rather than waiting for something that the Hubitat team has not committed to ever doing.

There are many advantages to running a local stmp server especially when the hub runs local. It all matters how you look at it.

But here is a simple script that does it.

https://gist.githubusercontent.com/quchie/3e02c5d5df8de804e8e0/raw/cfff612aaf5f380b4cf28841efa13a1f620b0499/Send%20Email.groovy

1 Like

Yes, but you can't do that locally on Hubitat at the moment, can we agree on that? So, that means you would have to run something on another device. Which is a community based solution that is out there already. I have an RPi that runs sendmail through a nodeJS server and allows me to send email from hubitat. There is documentation here on the forum for that.

Your idea might be technically possible but it requires you to either have OS access, which we don't, or for the Hubitat team to decide to implement an STMP server on the hub, which I highly doubt is anywhere in their plans. So, rather than just hope that changes, why not implement a solution today that works? You can always change to your perfect solution if it ever comes. Isn't something better than nothing even if it isn't perfect?

Anything that is a workable solution is better then nothing but many users aren't going to be willing to buy a pi or muchless install and learn how to run nodeJS. As you know most users that are just now coming here are point and click users.. yes they can learn but do they ? Most novice users won't.

My suggestion to add JavaMail is worth the exploration for HE hubs. It would also be the only hub that offers it aside the PI HA versions.

The solution would be as easy as this HOWTO...

https://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/

2 Likes

Does java mail send via SMTP (port 25)? What do you do about all those ISPs that block STMP on your home internet? That is very common here and even more common in Europe, from what I have read.

Gmail also offers port 465. ISP's do not block that port since it's SSL/TLS

submissions 465/tcp ssmtp smtps urd # Submission over TLS [RFC8314]

2 Likes

So, it would only work if you have a Gmail address to access it? I don't really think you've thought this 100% of the way through. Don't you think if it was as easy as you say, they would have done it already?

Dude nearly EVERY email service offers port 465 just for that reason. It's obvious you don't understand the way the internet works.

2 Likes

Now you're just being a jerk for absolutely no reason. Just because your argument doesn't hold up, don't start calling me names. It's not very mature.

You started the insults...

I have been a network admin for 3 decades. I know what I am talking about.

1 Like

That's an insult? Uhm....I'm just going to let that one lay there where it fell. Good night.

Sounds good with me...

People... Why end it like this. Such a shame.
I hope you can wake up and forgive each other. Would be nice!

About the email: so it's a feature request to be able send email through any cloud available smtp server. (You don't have to, and don't want to run your own SMTP server)
And no, it's not available at this moment on HE.

Wow, this reminds me of back in the early 2000s when the providers gouged you at least 50 cents for each text. It was ridiculous then and it's still ridiculous now.

No idea what you mean by this. I just didn't spend any money on sms and used chat programs that went through the data service. Problem solved.

Apparently I didn't get your first message. Sorry.

Not to reopen this can of worms but I would be very interested in seeing email capability built into the Hubitat. I can tell you that if this were an option, I would get many of these for my organization to monitor remote sites and different areas of the organization. I wouldn't need to send externally. I just want to be able to send an email to myself and others if something is out of range.

That being said, for home, it looks like I am going to have to use pushover. Is there a topic already on the forums that describes how to set it up and utilize it in my rules? Thanks.

1 Like