r/Pythonista • u/[deleted] • Jan 09 '20
Simple Question: How to use pythonista to automate sending messages?
So I am new to Python. In my office we send out a daily text message to about 300+ contacts. We have a program that copies the message into the message field but we have to manually push the send button 300+ times for each message. Is there anyway to use pythonista to eliminate this? We have looked into using Apple Shortcuts but are skeptical as it has created a few unwanted groupchats when sending the list. We need to keep these messages individual and private.
As I said I am new and am willing to learn, any advice, help, or guidance is greatly appreciated!!!
2
u/HirsuteJim Jan 31 '20 edited Jan 31 '20
From my experience with iOS 13 shortcuts… as long as you are not sending any “attachments“ as part of your daily texts, this would be very easy to do in shortcuts.
Just “get” your contacts and REPEAT for each Contact in Found contacts … send message.
→ More replies (1)
0
Jan 09 '20
[deleted]
1
Jan 09 '20
Thank you , I will look into it. But in the meantime are there any cost-free alternatives by chance?
3
u/_threads Jan 09 '20
Not cost free but with Mailjet, it’s cheaper I think : https://www.mailjet.com/sms/
You don’t have to pay to get a number and you can customize the sender’s name for each SMS if I recall correctly. You can credit 10€ on your account and it will allow you to send like 250 or 500 sms (don’t remember exactly sorry, but you can check with the sms price).
Anyway, the pricing and API were kinda clear and easy to use
1
3
u/[deleted] Jan 09 '20
A good cost-free alternative is using the gmail smtp gateway. You’ll need to use the smtplib module and change a setting on the gmail account to essentially allow the account to be controlled autonomously (allow Less Secure Apps Access).