{"id":25725352,"url":"https://github.com/herndone/ssmtp-messenger","last_synced_at":"2026-07-03T17:03:41.276Z","repository":{"id":122865843,"uuid":"245491936","full_name":"HerndonE/SSMTP-Messenger","owner":"HerndonE","description":"A simple way for users to use a send-only sendmail emulator.","archived":false,"fork":false,"pushed_at":"2024-02-05T00:59:42.000Z","size":182,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-02-05T01:42:10.430Z","etag":null,"topics":["gmail","openweathermap-api","python","sms","ssmtp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HerndonE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-03-06T18:36:22.000Z","updated_at":"2024-02-05T01:42:12.642Z","dependencies_parsed_at":"2024-02-05T01:42:12.178Z","dependency_job_id":"74f81bbc-36cc-4b5b-a6e3-1c78c0fce01f","html_url":"https://github.com/HerndonE/SSMTP-Messenger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FSSMTP-Messenger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FSSMTP-Messenger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FSSMTP-Messenger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FSSMTP-Messenger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HerndonE","download_url":"https://codeload.github.com/HerndonE/SSMTP-Messenger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240759439,"owners_count":19853068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gmail","openweathermap-api","python","sms","ssmtp"],"created_at":"2025-02-25T22:29:53.121Z","updated_at":"2025-10-30T13:05:21.528Z","avatar_url":"https://github.com/HerndonE.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSMTP Messenger 📲\nA simple way for users to use a send-only sendmail emulator. \n## Abstract    \n1. [Setup](#head1)    \n2. [Weather Messaging](#head12)\n\n## \u003ca name= \"head1\"\u003e\u003c/a\u003e Instructions\n\n**1. Operating System**  \nBefore you start, you need to have at lease **one** of these platforms in place    \n1. Windows 10 using a Linux subsystem\n2. Ubuntu\n3. Linux\n4. Raspberry Pi \n  \n**2. Google Account**    \n1. Login to your **Gmail** account\n2. Select **Security**.\n3. Under \"_Signing in to Google_\" select 2-Step Verification.\n4. At the bottom of the page, select App passwords.\n5. Enter a name that helps you remember where you’ll use the app password.\n6. Select **Generate**.\n7. To enter the app password, follow the instructions on your screen. The app password is the 16-character code that will be used for your email password in the python script.\n8. Select **Done**.   \n\n**3. Open up your terminal**    \n**Enter these commands below**   \n```console \nfoo@bar:~$ sudo apt update \u0026\u0026 sudo apt upgrade    \nfoo@bar:~$ sudo apt-get install ssmtp mailutils   \nfoo@bar:~$ sudo apt-get install postfix   \nfoo@bar:~$ sudo apt-get install ssmtp   \n```\n**4. Save original conf file**      \n```console\nfoo@bar:~$ sudo mv /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.bak    \n```\n**5 . Create new conf file (with vi, or some other text editor)**    \n```console\nfoo@bar:~$ sudo vi /etc/ssmtp/ssmtp.conf    \n```\nIn your file content, apply these changes    \n```shell\nroot=your_account@gmail.com\nmailhub=smtp.gmail.com:587\n\nFromLineOverride=YES\nAuthUser=your_account@gmail.com\nAuthPass=your_password\nUseSTARTTLS=YES\nUseTLS=YES\n\n# Debug=Yes\n```    \nNow enter    \n**ctrl o**     \n**y** to save your file     \n**ctrl x** to exit       \n\n**6. Secure conf file**    \n```console\nfoo@bar:~$ sudo groupadd ssmtp\nfoo@bar:~$ sudo chown :ssmtp /etc/ssmtp/ssmtp.conf\n```    \nNow lets create a text file to create some content for our message!    \n```console\nfoo@bar:~$ nano test.txt\n```    \nIn your file content, apply these changes  \n```shell\nHello 1 2 3 \n```   \nNow enter    \n**ctrl o**     \n**y** to save your file     \n**ctrl x** to exit   \n \n**7. Last but not least, the test!**    \n```console\nfoo@bar:~$ ssmtp recipient.address@some_domain.com \u003c test.txt\n```   \n\n**Added bonus**    \nTry texting from your computer to your phone! Look at link 3 for your carrier gateway            \n```console\nfoo@bar:~$ ssmtp 1234567890@smsgateway \u003c test.txt\n```  \nTry texting from your computer to your phone using shell!            \n```console\nfoo@bar:~$ nano test.sh\n```    \n```bash \n#!/bin/bash\n   ssmtp ssmtp 1234567890@smsgateway \u003c test.txt\n   echo \"Message sent\" #prints in console/terminal\n```    \nNow enter    \n**ctrl o**     \n**y** to save your file     \n**ctrl x** to exit    \n```console\nfoo@bar:~$ chmod 777 test.sh\nfoo@bar:~$ ./test.sh\nMessage sent\nfoo@bar:~$\n```    \n\n## \u003ca name= \"head12\"\u003e\u003c/a\u003e Weather    \nTake your SSMTP messaging skills a bit further using the [OpenWeatherMap API](https://openweathermap.org/api)! After signing up for a free key,\nyou can use my [weatherapi.py](https://github.com/HerndonE/SSMTP-Messenger/blob/master/Code/weatherapi.py) script as a guide to get a weather report on your phone. The output for my code is  \n\u003ctr\u003e\n\u003cth align=\"center\"\u003e\u003cimg src=\"https://github.com/HerndonE/SSMTP-Messenger/blob/master/Images/WeatherOutput.jpg\" width=\"100px;\" style=\"max-width:100%;\"\u003e\u003csub\u003e\u003cbr\u003e\u003cb\u003eWeather Output\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr\u003e\u003c/th\u003e\n\u003c/tr\u003e\n\n## References\n[How to send mail from command line using gmail smtp server](https://stackoverflow.com/questions/38391412/raspberry-pi-send-mail-from-command-line-using-gmail-smtp-server\n)    \n[How to write a shell script](https://vitux.com/how-to-write-a-shell-script-in-ubuntu/)    \n[SMS gateway lookup](https://en.wikipedia.org/wiki/SMS_gateway)    \n[Cell phone lookup](https://www.spokeo.com/reverse-phone-lookup?g=phone_gs_bfree\u0026campaignid=1814250205\u0026adgroupid=70553735718\u0026creative=344872239261\u0026targetid=kwd-109356030\u0026placement=\u0026gclid=Cj0KCQiAqNPyBRCjARIsAKA-WFzNn2-wWRnofVmML69KbU-rKOqqAH2PDRCu0XjOvmMniAsEvSw2K-QaAojZEALw_wcB\n)\n\n## Terminology    \n1. What is **ssmtp**?    \nSSMTP is a send-only sendmail emulator for machines which normally pick their mail up from a centralized mailhub.    \n2. What is **mailutils**?    \nMailutils is a _swiss army knife_ of electronic mail handling and offers a set of utilities and daemons for processing e-mail.    \n3. What is **postfix**?    \nPostfix is a free open-source mail transfer agent (MTA) that routes and delivers electronic mail.    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherndone%2Fssmtp-messenger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherndone%2Fssmtp-messenger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherndone%2Fssmtp-messenger/lists"}