Create email and text message SMS alerts with Python!
Вставка
- Опубліковано 2 жов 2024
- / discord
Quick and easy way to send text message SMS alerts in python. I use this alert system in a ton of my programs to make sure they are still running. Also to monitor servers and let me know if one goes down.
Check out our new discord server for free advice and help with your projects. We have people from all over the world so someone should be around to help!
This was really straightforward and simple. Pls keep posting! We need more youtubers like you
Thanks David! I appreciate the view.
Thanks for posting! I want to use this to send myself motivational texts throughout the day:) Next step, making the script that runs through the day!
That's actually a really cool use case. Thanks for watching I really appreciate it.
I was thinking the same type of thing... how would you make it choose a message at random?
@@joemckenzie4454 you could have a dictionary or array of messages saved as a variable. Then call an imported library that generates a random number. Then pass that number into the array!
lol
Like how simple and straight forward ur code and videos are.
Keep up the good work.
Thanks! I appreciate it.
Thank you this is easy to follow. more power to your channel keep on sharing and keep safe.
Thanks I really appreciate you watching!
Hey Jake, you're a really good teacher. This is a wonderful code that is so useful and easy to learn and use. I immediately got it to work thanks to your clear and easy-to-follow instructions!
👍Thank you & Sub'd!
It worked. I wrote it up in Notepad, ran it, fixed it, then it worked perfect.
I wish I could you more likes, this is so straightforward
I wish you could too! Just kidding thanks for watching!
@@dj-la--wolf1288 Then something was off! Jump in our discord and share the error you are getting!
Thank you, it's working correctly!!
unfortonely, i couldn't sent text message for Mexican Mobile Companies :(
Bummer! Well I hope at least the email alerts will help you out.
I cannot import email.message. I have tried importing email and message too and they both seem to not be working...
Edit: Oh! Turns out my filename was 'email.py' which resulted in an error. I just had to Save As a new file and delete the old one.
Yeah this has caught a few people thanks for commenting and watching!
Cant pip install.. error: no matching distribution found for smtplib
its found default within ur python libraries
Great video, I was wondering how I would go about trying to send an audio attachment through python?
Thanks, watch other videos and they were not correct. Thanks for saving me hours of work!
Are There any charges associated with sms services if we are using this for a large database ??
That friggin worked! Thumbs up for you sir!
Appreciate it! Thanks!
All code makes sense! Thanks
❤❤what an awesome explanation.. new subscriber
thank u so much❤❤❤❤❤
hi, I've received this error, any idea how to solve it?
from email.message import EmailMessage
ImportError: cannot import name EmailMessage
Hello bro, can I use the same code and copy it in thonny under a file name detect.py and will I get message if someone is detected using the mobile phone?
thank you mate needed this for a project and you came in clutch!!!
Hey thank you for making this video. For some reason the emails are not being sent in my case. This is the message I see every time I run my python job : "Process finished with exit code 0" which means it ran successfully I guess.. I did all the settings you showed in the video but no luck!
EXTREMELY HELPFUL, CLEAR AND EASY TO FOLLOW!! THANK YOU!!!!!!
Hi, and thank you for the tutorial! Although it works really well i face one problem: my email gets sent but the receiver doesn't get a notification about the email that i just sent him, although it doesn't end up in spam. Is there any way to fix this?
Thanks so much for this informative video. Unfortunately, I am not able to send SMS text. It 1 SMS then gave me "Exceptions - SMTPRecipientsRefused" error and would not send any other sms message. Have you encounter this error before?
ooo my god its work ...........................................
Beautiful. Thank you!
Glad you like it!
Really helpful and understandable. Great job buddy!
thank you very much. Straight to the point. Rare nowadays
Means a lot thanks for watching.
thanku brother sharing this knowledge
No problem thanks for watching.
Thanks for the tutorial! The email works perfectly but I wouldn’t know about the email to sms because I’m on three mobile and they don’t allow it sadly. I’ll just stick with the email instead. Thanks! :D
Amazing... That's what I expected... Thanks brother!!
Glad you liked it!
Awesome video!!
How's it going buddy? Been awhile.
Hoping someone can help me. When I send email-to-text, Gmail flags these emails as spam for some reason. Any Idea how to prevent this?
Thank you 😊
Great tutorial, man! Thank you, I'm going to use what I learnt in my next video, much appreciated!
Awesome! Glad it was helpful.
Sad news guys google just removes their third party access feature since May 30 , 2022
This is still working today and I still use it! support.google.com/accounts/answer/3466521?hl=en
Is there any way a chance to get an alert from a closed page with login required? There's no notification from uni when grades are getting published and I therefore constantly check everyday. Can this be solved the same way with python?
I could be a bit late to reply but I would suggest using the selenium module. You can manage chrome tabs (and other browsers) headlessly (without actually rendering it) and you would just have to make a script that logs you in, scrapes the page for data needed (your grades as mentioned), and use the guide in the video to send that data.
simple and straight forward
loved this type of Video
looking for more video
I will have more out soon no worries! Thanks for watching I really appreciate it.
Code runs correctly but no one message can come
your guide was amazing work from first try, but you now why after 24 i don't receive any emails and i don't have any errors in python
Hello sir, this has been a big problem for me and I want to ask you some questions
1. You make mention of mobile carriers and it seem I can find my countries mobile carriers, am in Ghana
2. Can I link this to an excel sheet and if so, how is it done .
Thanks a lot ..this was a great video
can you like link the website here?
You can also consider Slack to send alerts.
I want this source code sir pls send sir
I am looking for a python gui, which has the function of sending automatic sms messages to many phone numbers at the same time when it is close to a specific time, to remind to do the job not to be forgotten.
Thank you so much! I was wondering why my program stopped working and it was because google changed it to where we had to add the 2-Step verification App Password
hey, i ran into a issue if you don't mind helping me figure out:
"socket.gaierror: [Errno -2] Name or service not known"
Running Ubuntu 20.04.4, using visual studio code
Can we have a voice call text to speech
Excellent tutorial - in the future, you can avoid showing passwords in plain text by setting the variables to input() functions and then cutting off the terminal when running the code and entering your password.
Pls send this source code pls ...
Thanks alot
Is it free to send sms to my number ?
I want to send a text message that will read a certain string from a serial port under the right conditions.
How would you make a script to allow others to join the text or email alerts? Such as a stock alert to subscribed members. Thank you for your videos!!
You could work it into a Flask web app or really any other project depending on the situation.
Great tutorial. Is there a way to get what they respond with?
can i do this with whatsapp?
ive learned more in this tut then any other on the internet altogther, thanks bro
Thank you.
@@ClarityCoders anytime , keep up the good work! thanks again
Good information
This works perfect. Thanks!
Awesome!
Hey - I am trying to create a notification to let me know if the price of a certain product that I am tracking in amazon goes below a certain amount. Do you think I could do that?
Hi, thank you for example send email, it's working but how to push notification to receiver ? I see sent email but receiver can't see notification about email
Thanks a lot. ❤️
This really good bro. Where is the video to illustrate how I can import this function to my project
I want to send text messages to a lot of customers, so my question is, would this work for many customers, sending them text messages alerts? Is this service provided for all countries
When I run the script I see this error
==> AttributeError: 'NoneType' object has no attribute 'decode'
Join the discord we can help you out.
Do the new protocols block this as spam for sms? I can get emails, but the texts never come through
me is sabkribe :3
I'm from India, which Career should I use to send text message?
Does it let you text other people using the email?
Sure but you need to know there number and carrier which you can lookup online if you have the number. To do it without looking up their info you need to pay for a number.
thank it works
for the phone, it will not work because im not living in us
hi sir i have one doubt sir, why you are use digital trends website..pls expline sie
Thanks.
Is possible an alert of calling my phone from Python?
Hi, how would you get that port number: 587 you wrote there
Good stuff man. Gona try this later today I've been meaning to do this for the past couple of days
This was amazing. I created a quick script to remind me (text and email) to give the pills to my dog. I created a table in my database with the dates and the number of pills he needs on a given day. Put that into a dataframe so the message is always dynamic! Thanks again...just subbed.
do you use visual studio or visual studio code
@@danial9705 VS Code
Thank you for your clear video..it helped🙏🙏 me a lot at the last minute
very useful tutorial...thanks for sharing this knowledge, this is a game changer!!
how do I send an image using this, btw good video
great tutorial but i have a question.What terminal do you use on the video?
Git bash! git-scm.com
@@ClarityCoders thanks
Thank you so much I search for bunch of tutorials
i get a "authentification required" error
Thank u man this is the first email sending video that worked for me
just simple and amazing the video and the explanations
This method is not working at all
It is working! do not modify the port number 587
How to send alerts to many people at the same time?
Thanks
Thanks a lot
How can I make it send me an alert for a product on facebook marketplace?
Really cool video and appreciate your creating it so easily. This is exactly what I was looking for. It would be great if you can share how to send the text message to multiple users /customers to share important updates like sales and promotions. Hopefully you don't need to know all their carriers info to set them up. Also, would be great if you can show how to integrate into an iOS application
Thanks for watching and really great suggestions. I will look into them!
@clarity coders, can I get a similar code like this to make clinical email and sms reminders in Kenya please
Is this working only in the US ?
Unfortunately I only know it works in the US for our phone carriers. I'm sure it does work outside but probably a different setup! Sorry I can't be more help.
I'm getting "ImportError: cannot import name 'EmailMassage' from 'email.message'" - I figured it was because there was some kind of name conflilction further in the code but I can't seem to find it. I have fully uninstalled/reinstalled python3 with no luck. Any help would be appreciated. StackOF doesn't have much that I've found for help.
Great video! Also, Joined the discord :)
you are awesome
did not work at all
Should something must be a little off! Join the discord and post the error in our help channel and we will try to fix it with you. discord.gg/RvtT8Jm
Thanks! Very helpful.
that SMS part looks hoax
It works! At least in the US.
Is the code available on a repo?
Thank you so much..
But I've a doubt..
I've done the whole process for our project..
But still didn't get the alert msgs to both mobile and email..
Can u please help me with it..
Jump in our discord and someone can help you out!
I love you dude.
Loves.