1. 5

    Send SMS [in the US] using python (Without Twilio)

    ;)

    I think these kind of SMTP to SMS gateways are common in North America but, for example, I don’t think any Australian mobile carriers offer them. Unsure about how common they are in the rest of the world, but wikipedia only mentions US & Canada.

    Believe the reason they don’t exist in countries like Australia is that subscribers have never paid to receive SMS here (sender pays). So there’s never been an incentive for a carrier to offer such a thing.

    1. 6

      Thanks for the clarification. After reading the short text I was left with the question how the payment would be performed (if the mobile number would not be somehow tied to the SMTP login before-hand). From the other perspective: Isn’t a receiver pays scheme together with these SMTP gateways the perfect way to get DOS’ed (in regards of money). Someone just has to send thousands of SMS to you and at some point either your prepaid money will be empty or you will have a very huge invoice.

      In Europe I have used smstools for sending SMS with a USB-SIM-Card adapter. This comes with a daemon that monitors a folder for text files. When a new text file arrives, it will process it and send it out. So from Python it’s then simple enough to send out an SMS by writing a text file.

      1. 4

        Isn’t a receiver pays scheme together with these SMTP gateways the perfect way to get DOS’ed (in regards of money). Someone just has to send thousands of SMS to you and at some point either your prepaid money will be empty or you will have a very huge invoice.

        I also wondered how this part works, maybe some Americans who know about a bit about the telco industry can explain?

        (I’m also not sure if any US carriers still charge to receive SMS, I just know that they used to - I think now it’s usually a bundled free addon.)

        1. 2

          American here. You’re correct in that most US carriers no long charge for text messages, but rather lump it in with monthly bandwidth limits. When carriers did charge for texts, it was back in the pre-smartphone era, and still fairly new, and I wasn’t aware of any large scale DDOSing. However, it was always flawed, in that your friend could text you a bunch a you’d get charged a lot. I remember a lot of telling people to stop texting or shutting off my phone near the end of the month.

      2.  

        I quickly researched and it seems that in Austria (not Australia) a similar (but different) email to SMS gateway also exists - e.g. in the email Business Package from A1. It’s charged per SMS sent.

        There is no documentation, but to my understanding you basically login to your A1 e-mail account normally and then send an e-mail to [number]@smssenden.at. They will then detect “aha, this e-mail actually is an SMS” and re-route it for you. So unlike in the US way explained in the article you always use smssenden.at as destination and A1 will handle whatever carrier the recipient has.

        1. 2

          From Malaysia. Back in early 2000, this is trick we use to send sms for free. But these days I don’t think any of the local carrier has that email address open anymore.

          1.  

            I am surprised I didn’t know you had to pay for sms outside US

            1.  

              You usually don’t need to pay for SMS these days, it’s included as a free add-on from most carriers (at least in Australia and most countries I’ve ever visited).

              The point is that in the US you used to have to pay to send and receive SMS, but in some other countries you only ever had to pay to send. And my understanding is that these SMTP carrier gateways exist from this time. Less clear that the carriers would have an incentive to add them now, if they didn’t already exist (harder to take something away after customers have been relying on it for almost two decades).

          1. 4

            I use neovim, with a fairly minimal/native setup. I use a bunch of tpope plugins, and have some custom configuration changes for filetypes and some custom plugins for working with the :terminal and some simple note taking. I use configuration directories as outlined by this post, and other places I’m sure. Here’s my config.

            1. 5

              I’ve seen Diana’s work before and it’s really impressive, this one especially so.

              I am seeing the lace rendered above the woman’s face on mobile safari, however.

              1. 1

                Honor the web the only way it can be: with a slideshow.

                1. 3

                  I’ll be improving my personal indieweb site, and hopefully get post scheduling and syndication to twitter/mastodon working.

                  1. 1

                    I really enjoyed this. Even though I’ve been programming for years now, I found the video really helpful, and I immediately sent it to a friend who’s currently in a boot camp. Great work! I’d love to see more in this vein.

                    1. 2

                      Thank you!

                      If you have any topic suggestions/ideas, please let me know.

                      1. 1

                        Yeah! Maybe something with recursion using a russian nesting doll and disguised jump cuts? Only half an idea, though.

                        1. 2

                          I actually had made a video on recursion in the past, with boxes generating other boxes based on blueprints :) https://www.youtube.com/watch?v=vLhHyGTkjCs

                          1. 1

                            Ha, beat me to it!

                            What about sorting algorithms with refrigerator magnets?

                            1. 1

                              Hmm, could you elaborate, please?

                              1. 1

                                Sure. It’s a half-idea, but my thought was to explain something like bubble-sort, by re-arranging the order of stacked magnets on a refrigerator. Maybe something like these that have different colors, so you can see visually how the sort works based on color groupings https://www.amazon.com/Tiergrade-Assorted-Classroom-Refrigerator-Whiteboard/dp/B01K70O2HO?ref_=Oct_DotdC_3i1i9_0_09c36237&pf_rd_p=89def296-fb7d-550c-8a3f-9de7cb1ee35d&pf_rd_s=merchandised-search-5&pf_rd_t=101&pf_rd_i=3737161&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=2N3HRCNB9X0DX1K6ZZ1M&pf_rd_r=2N3HRCNB9X0DX1K6ZZ1M&pf_rd_p=89def296-fb7d-550c-8a3f-9de7cb1ee35d

                                1. 2

                                  Interesting, I’ll think about it! Thanks!

                    1. 5

                      I will be going over lines for a small play, finishing a choose your own adventure style post, and maybe if I have time, other technical improvements to my personal blog.

                      1. 1
                        • MacOS
                        • Linux (home only)
                        • Firefox
                        • Alacritty
                        • Neovim (usually via Vimr)
                        • mutt (home only)
                        • Apple Mail (work only)
                        • pass
                        • ripgrep
                        • bash (went back after years of using zsh and then fish)
                        • slack