TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Send text messages for free using Python

275 pointsby alfredosequeidaover 3 years ago

27 comments

acidburnNSAover 3 years ago
In 2009, I could send and receive text messages though SMS gateways that would control my arduino-controlled hot tub that my friends and I got for $100 on Craigslist. I could adjust the temperature and it would acknowledge and tell me when the programmed temperature would be reached based on the time derivative. This was useful as a grad student in Ann Arbor winters.<p>I had a python script running on a handmedown computer running Ubuntu 8.10 that just periodically checked an email account, parsed the command, flipped the relay as necessary, read the temperature rise, and replied.<p>Writeup: <a href="https:&#x2F;&#x2F;partofthething.com&#x2F;thoughts&#x2F;hot-tub-controller&#x2F;" rel="nofollow">https:&#x2F;&#x2F;partofthething.com&#x2F;thoughts&#x2F;hot-tub-controller&#x2F;</a>
评论 #29918538 未加载
评论 #29917327 未加载
评论 #29916463 未加载
cfstrasover 3 years ago
If you want to use this as a toy, sure. But please don’t rely on it for messages you want to actually get delivered: These gateways frequently drop messages for random reasons, or block your IP if you send more than a few messages at a time. Also, in countries other than the US, expect the gateways to be long gone, or completely unreliable.
评论 #29919466 未加载
评论 #29920273 未加载
评论 #29921272 未加载
评论 #29920916 未加载
评论 #29920195 未加载
woodruffwover 3 years ago
Tangentially related: it&#x27;s fascinating how much of the cellular messaging network runs on (or at least speaks) SMTP and IMAP. These SMS&#x2F;MMS gateways are just one example; Visual Voicemail[1] also runs on IMAP and it also shows up in mobile terminal (i.e., phone) testing standards[2].<p>[1]: <a href="https:&#x2F;&#x2F;www.gsma.com&#x2F;newsroom&#x2F;wp-content&#x2F;uploads&#x2F;2012&#x2F;03&#x2F;omtpvvmspecification12.pdf" rel="nofollow">https:&#x2F;&#x2F;www.gsma.com&#x2F;newsroom&#x2F;wp-content&#x2F;uploads&#x2F;2012&#x2F;03&#x2F;omt...</a><p>[2]: <a href="http:&#x2F;&#x2F;www.omtp.org&#x2F;OMTP_Terminal_Testing_1.0.pdf" rel="nofollow">http:&#x2F;&#x2F;www.omtp.org&#x2F;OMTP_Terminal_Testing_1.0.pdf</a>
评论 #29919003 未加载
croesover 3 years ago
So the article is actually about how to send an email with python because the carriers do the text message part.
评论 #29920446 未加载
评论 #29922433 未加载
评论 #29920008 未加载
评论 #29917453 未加载
themacguffinmanover 3 years ago
Aren&#x27;t these basically open relays for SMS? Wouldn&#x27;t they be buried under an avalanche of spam? I&#x27;m honestly mystified at how and why carriers expose these free SMS gateways. Am I missing something?
评论 #29917729 未加载
评论 #29917427 未加载
评论 #29917443 未加载
drcongoover 3 years ago
Back around 1998 I built a Nokia phone and interface in Flash 4 that you could actually use to send me an SMS message using this exact technique behind the scenes. Unfortunately it was interesting and novel enough that it made German TV and while sat at my desk one morning my phone suddenly started buzzing constantly as a non-stop flood of messages in German started coming in. I had to turn the phone off and when I turned it back on after work it buzzed until it basically filled up and then never worked again. I had to buy a new phone and disable the message sending of the Flash site.
trentmcdougallover 3 years ago
Can anyone help me understand why carriers still offer these gateways for free? I would have thought they would charge for them?
评论 #29916739 未加载
评论 #29916352 未加载
评论 #29916305 未加载
评论 #29916297 未加载
评论 #29916684 未加载
plucover 3 years ago
I hate everything about this article. From the video thumbnail to the misleading claims.
评论 #29921781 未加载
评论 #29920601 未加载
barbazooover 3 years ago
I skimmed the post but couldn&#x27;t find out how one would know what provider to use. I guess you could ask whoever you&#x27;re texting with but that&#x27;s not very reliable, not everyone knows, and people change their provider.
评论 #29916111 未加载
评论 #29916060 未加载
评论 #29922521 未加载
评论 #29916242 未加载
评论 #29916244 未加载
slrainkaover 3 years ago
:) Brings back memories of doing this in 2002 to blast out Student Government campaign messages to students on campus. Back then email servers were very forgiving. I just had a loop that generated all combinations of &lt;phone-number@carrier-x&gt; and send out an email from a campus IP address via sendmail. It was a very effective way to send notifications at almost zero cost.
评论 #29919106 未加载
TOMDMover 3 years ago
Man, I remember doing this around a decade ago back before some of my friends abroad had smart phones, being able to message them when they were away from their computers had such a fun novelty to it.
评论 #29916342 未加载
techsupporterover 3 years ago
This is clever but due to the astounding amounts of spam and scams I got through that mechanism (not this script specifically), I had to set this to blocked on my T-Mobile account.
评论 #29916293 未加载
评论 #29916651 未加载
antmanover 3 years ago
Let me point out that receiving Telecoms are well aware and block randomly or totally messages from these services so that they appear buggy.
spotijkover 3 years ago
We used to offer such a free SMS gateway at ActiveXperts.com. Now moved to AuronSoftware.com and hid it a little better.<p>It&#x27;s meant for trial users to be able to test our software without having to have a subscription or GSM modem.<p>But those gateways saw &#x2F; see a <i>lot</i> of abuse. Even though we clearly state that each trial user only has 10 free messages we still regularly get an e-mail from an angry &#x27;trial user&#x27; because only 10 messages out their 50K+ phone number mass mailing arrived.
CTDOCodebasesover 3 years ago
This article reminded me of years past when I would marvel at the Nokia 6110 and how easy it was to send text messages while exchanging message centre numbers that gave me and my friends the ability to send unlimited messages for free.
tpoacherover 3 years ago
Back during my phd I worked in a project that set up sms transponders onto the handles of water handpumps in kenya.<p>So whenever a pump was misbehaving or broke, we would observe it all on a webpage and a technician would be alerted to fix it.<p>Later on some ML was strapped to the SMS data to predict failing pumps before they failed.<p>Good stuff. sms can be very powerful in the right setting.<p>Don&#x27;t know what the author means by free here though. Sms is something you pay for, one way or another.
imranhouover 3 years ago
The primary limitation here is inability to receive responses back from users. From a business revenue generation angle, that&#x27;s probably not enough of a feature set to monetize for the carriers.
评论 #29916417 未加载
评论 #29916422 未加载
评论 #29916453 未加载
评论 #29916674 未加载
tgvover 3 years ago
Warning: that page plays sound. How can they not know that’s not done?
conductrover 3 years ago
Don’t ask your customer for their carrier information. Just use sms
gaddersover 3 years ago
I remember in the UK in the 90&#x27;s you used to be able to set your phone&#x27;s SMS message centre to one in EG Finland or somewhere and be able to send all your texts for free.
bluedaysover 3 years ago
Can we talk about how the function he wrote had like 15 parameters?
crumpledover 3 years ago
I used to forward all my hotmail to sms in 1997. I felt so techy doing email on my little flip phone.
Aissenover 3 years ago
Idea for a better title: the subtitle &quot;Use Python to send text messages via email&quot;
评论 #29927355 未加载
unobatbayarover 3 years ago
For free? What&#x27;s the catch?
评论 #29916390 未加载
评论 #29917715 未加载
评论 #29916228 未加载
评论 #29916243 未加载
wolfi1over 3 years ago
sadly, this seems just to work for the US, my country (in the EU) does not have such free services anymore, there used to be such a service in the 90s, unfortunately it has been discontinued
estover 3 years ago
So, how do you lookup a phone number&#x27;s provider for free?
评论 #29916370 未加载
评论 #29916349 未加载
评论 #29916393 未加载
andrewstuartover 3 years ago
Is there a way to send free SMS in Australia?
评论 #29917543 未加载