You are not logged in.

#1 2021-09-11 21:50:45

leodova
Member
Registered: 2021-09-07
Posts: 15

[SOLVED] Sending email from the command line

Hi everyone...

I'm playing around with trying to send an email through gmail's smtp from my command line. I'll eventually be using it to send weather alerts to my phone. However when I try to install ssmtp is says that there is no installation candidate, that maybe it's obsolete or something.

Can I use sendmail instead?

Last edited by nobody (2021-09-11 23:34:09)

Offline

#2 2021-09-11 23:05:43

leodova
Member
Registered: 2021-09-07
Posts: 15

Re: [SOLVED] Sending email from the command line

Thanks. I set up msmtp like you said and it's working pretty well! There won't be anyone else sending emails, just me. My next step will be figuring out how to send the output of my weather command into an email and send it off to my phone!

I also stored my gmail password in a gpg file according to the instructions here

https://wiki.debian.org/msmtp


By the way, I had to turn on "less secure apps" in my gmail account for this to work. It kept returning authentication failure.

Last edited by leodova (2021-09-11 23:32:43)

Offline

#3 2021-09-12 00:04:25

leodova
Member
Registered: 2021-09-07
Posts: 15

Re: [SOLVED] Sending email from the command line

Thanks!

Last edited by leodova (2021-09-12 13:02:11)

Offline

Board footer

Powered by FluxBB