# Send text messages for free using Python

**URL:** <https://forum.devtalk.com/t/send-text-messages-for-free-using-python/36335>\
**Category:** Backend In The News\
**Tags:** python\
**Created:** [13 January 2022 14:22 UTC](https://forum.devtalk.com/t/send-text-messages-for-free-using-python/36335 "2022-01-13T14:22:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommunityNews](https://forum.devtalk.com/user_avatar/forum.devtalk.com/communitynews/32/1113_2.png) [@CommunityNews](https://forum.devtalk.com/u/CommunityNews)\
**Post date:** [13 January 2022 14:22 UTC](https://forum.devtalk.com/t/send-text-messages-for-free-using-python/36335/1 "2022-01-13T14:22:35Z")

</div>

[![](https://img.youtube.com/vi/4-ysecoraKo/maxresdefault.jpg "How to send text messages for free using Python | Use Python to send text messages via email") ](https://www.youtube.com/watch?v=4-ysecoraKo)

Read in full here:

> **[How to send text messages for free using Python | Use Python to send text...](https://www.alfredosequeida.com/blog/how-to-send-text-messages-for-free-using-python-use-python-to-send-text-messages-via-email/)**
>
> Using SMS and MMS gateways we can send text messages to phones from a computer via email. With this strategy we can use a combination of the Python SMTP and email library to send text messages programmatically for free! This not only includes short...

_This thread was posted by one of our members via one of our news source trackers._

---

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [13 January 2022 14:25 UTC](https://forum.devtalk.com/t/send-text-messages-for-free-using-python/36335/3 "2022-01-13T14:25:26Z")

</div>

Haven’t watched it all, but I wonder if it works in the UK/internationally…

---

<div class="post-metadata">

**Author:** ![iPaul](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/i/7feea3/32.png) [@iPaul](https://forum.devtalk.com/u/iPaul)\
**Post date:** [13 January 2022 18:08 UTC](https://forum.devtalk.com/t/send-text-messages-for-free-using-python/36335/4 "2022-01-13T18:08:28Z")

</div>

Interesting, for my plan it is free to send text messages in Canada from my phone. But I will try if it works programatically with Python from my computer just for fun.

---

<div class="post-metadata">

**Author:** ![AstonJ](https://forum.devtalk.com/user_avatar/forum.devtalk.com/astonj/32/7_2.png) [@AstonJ](https://forum.devtalk.com/u/AstonJ)\
**Post date:** [13 January 2022 19:49 UTC](https://forum.devtalk.com/t/send-text-messages-for-free-using-python/36335/5 "2022-01-13T19:49:35Z")

</div>

I think most mobile contracts here include free texts too, but the above could be used for apps (such as for verifying numbers for user accounts).

There are services you can use such as Twillio, but if you’re a target some malicious entity could initiate hundreds or thousands of bogus sign-ups and each one eating into your service credits. You could restrict by IP or opt for the more expensive ‘verification’ service where you are only charged on successful verification, but still costs can mount up.

---

<div class="post-metadata">

**Author:** ![dyowee](https://forum.devtalk.com/user_avatar/forum.devtalk.com/dyowee/32/6692_2.png) [@dyowee](https://forum.devtalk.com/u/dyowee)\
**Post date:** [18 January 2022 00:22 UTC](https://forum.devtalk.com/t/send-text-messages-for-free-using-python/36335/6 "2022-01-18T00:22:06Z")

</div>

Interesting. Should be useful for simple/small applications.

---

<div class="post-metadata">

**Author:** ![adamaiken89](https://forum.devtalk.com/user_avatar/forum.devtalk.com/adamaiken89/32/2661_2.png) [@adamaiken89](https://forum.devtalk.com/u/adamaiken89)\
**Post date:** [18 January 2022 01:41 UTC](https://forum.devtalk.com/t/send-text-messages-for-free-using-python/36335/7 "2022-01-18T01:41:48Z")

</div>

Text message using twilio or similar is quite expensive. I will definitely have a look and see if that can help building a small project.
