Can I email or text myself through Python or bash?
cross-posted from: beehaw.org/post/10863052
Noob question incoming, thanks in advance for any help with this!
I have a specific use case in which I want to send an automated email or text to myself once a day (the message is different each time–otherwise I would just set an alarm, lol!). I’m running Pop_OS on an old desktop computer. Where I’m stuck is getting an email to successfully send from the command line. I’m looking for easy-to-follow instructions that would help me do that, and none of the articles or videos I’ve come across thus far have helped.
I’m aware of Twilio and other services that send SMS messages, but I’m looking for something free. Especially since I only need to text one person (myself), and infrequently at that.
Below is my attempt to send an email with the telnet command. Nothing ever came through…
<span style="color:#323232;">XXXXXXXX@pop-os:~$ telnet localhost smtp </span><span style="color:#323232;">Trying ::1... </span><span style="color:#323232;">Connected to localhost. </span><span style="color:#323232;">Escape character is '^]'. </span><span style="color:#323232;">220 pop-os ESMTP Exim 4.95 Ubuntu Sun, 07 Jan 2024 15:12:28 -0500 </span><span style="color:#323232;">HELO gmail.com </span><span style="color:#323232;">250 pop-os Hello localhost [::1] </span><span style="color:#323232;">mail from: XXXXXXXX@gmail.com </span><span style="color:#323232;">250 OK </span><span style="color:#323232;">rcpt to: XXXXXXXX@gmail.com </span><span style="color:#323232;">250 Accepted </span><span style="color:#323232;">data </span><span style="color:#323232;">354 Enter message, ending with "." on a line by itself </span><span style="color:#323232;">Subject: Test </span><span style="color:#323232;">Body: Is this working? </span><span style="color:#323232;">. </span><span style="color:#323232;">250 OK id=1rMZW4-0002dj-Uy </span><span style="color:#323232;">quit </span>
Add comment