Create email and text message SMS alerts with Python!

Sdílet
Vložit
  • čas přidán 29. 08. 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!

Komentáře • 287

  • @David-qd4it
    @David-qd4it Před 3 lety +31

    This was really straightforward and simple. Pls keep posting! We need more youtubers like you

  • @mitchelldyer5415
    @mitchelldyer5415 Před 3 lety +19

    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!

    • @ClarityCoders
      @ClarityCoders  Před 3 lety +6

      That's actually a really cool use case. Thanks for watching I really appreciate it.

    • @joemckenzie4454
      @joemckenzie4454 Před 3 lety +2

      I was thinking the same type of thing... how would you make it choose a message at random?

    • @mitchelldyer5415
      @mitchelldyer5415 Před 3 lety +4

      @@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!

    • @siva_subramaniam
      @siva_subramaniam Před 2 lety

      lol

  • @newguy1308
    @newguy1308 Před 3 lety +2

    ive learned more in this tut then any other on the internet altogther, thanks bro

  • @FastingDude
    @FastingDude Před 2 lety +1

    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.

    • @danial9705
      @danial9705 Před 2 lety

      do you use visual studio or visual studio code

    • @FastingDude
      @FastingDude Před 2 lety

      @@danial9705 VS Code

  • @ishtarur
    @ishtarur Před 3 lety +8

    I wish I could you more likes, this is so straightforward

    • @ClarityCoders
      @ClarityCoders  Před 3 lety +6

      I wish you could too! Just kidding thanks for watching!

    • @ClarityCoders
      @ClarityCoders  Před 2 lety

      @@dj-la--wolf1288 Then something was off! Jump in our discord and share the error you are getting!

  • @JoseJupiter21
    @JoseJupiter21 Před 3 lety +4

    EXTREMELY HELPFUL, CLEAR AND EASY TO FOLLOW!! THANK YOU!!!!!!

  • @ryanfernando8330
    @ryanfernando8330 Před 2 lety +2

    thank you mate needed this for a project and you came in clutch!!!

  • @justinpaoloplaton7562
    @justinpaoloplaton7562 Před 4 lety +8

    Thank you this is easy to follow. more power to your channel keep on sharing and keep safe.

  • @firealarmapprentice4517

    It worked. I wrote it up in Notepad, ran it, fixed it, then it worked perfect.

  • @cerdafiedDeveloper
    @cerdafiedDeveloper Před 3 lety +3

    thank you very much. Straight to the point. Rare nowadays

  • @ambanna
    @ambanna Před 4 lety +5

    Like how simple and straight forward ur code and videos are.
    Keep up the good work.

  • @dosinadasung7981
    @dosinadasung7981 Před 4 lety +2

    simple and straight forward
    loved this type of Video
    looking for more video

    • @ClarityCoders
      @ClarityCoders  Před 4 lety

      I will have more out soon no worries! Thanks for watching I really appreciate it.

  • @malikabdul2217
    @malikabdul2217 Před 2 lety

    You’ve won my subscription by such a easy and great content for me without any coding experience for me to be able to it God bless you

    • @ClarityCoders
      @ClarityCoders  Před rokem

      Really appreciate the view and comment! Hope you check out some other videos as well.

  • @rayoh2011
    @rayoh2011 Před rokem +2

    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!

  • @BritainW3llz
    @BritainW3llz Před 2 měsíci

    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.

  • @vinothv1720
    @vinothv1720 Před 3 lety +3

    Amazing... That's what I expected... Thanks brother!!

  • @karimmohamed12
    @karimmohamed12 Před 2 lety

    Thank u man this is the first email sending video that worked for me

  • @jorgesandoval5450
    @jorgesandoval5450 Před 4 lety +5

    Thank you, it's working correctly!!
    unfortonely, i couldn't sent text message for Mexican Mobile Companies :(

    • @ClarityCoders
      @ClarityCoders  Před 3 lety

      Bummer! Well I hope at least the email alerts will help you out.

  • @Mtnktown
    @Mtnktown Před rokem

    Good stuff man. Gona try this later today I've been meaning to do this for the past couple of days

  • @HitraNtheProgrammer
    @HitraNtheProgrammer Před 3 lety +2

    Great tutorial, man! Thank you, I'm going to use what I learnt in my next video, much appreciated!

  • @thomasgu9829
    @thomasgu9829 Před 3 lety

    This really helps, I am trying to build a siren system for my project. Thank you!

  • @tiwariji9985
    @tiwariji9985 Před 2 měsíci

    ❤❤what an awesome explanation.. new subscriber

  • @abarnakalai1371
    @abarnakalai1371 Před 2 lety

    Thank you for your clear video..it helped🙏🙏 me a lot at the last minute

  • @chechecole5905
    @chechecole5905 Před 4 lety

    That friggin worked! Thumbs up for you sir!

  • @Th3CreeperStrike
    @Th3CreeperStrike Před 4 lety +2

    This works perfect. Thanks!

  • @rafaeldiaz6308
    @rafaeldiaz6308 Před 2 lety

    Thanks, watch other videos and they were not correct. Thanks for saving me hours of work!

  • @_jirkaa_5170
    @_jirkaa_5170 Před 2 lety

    Thank you so much I search for bunch of tutorials

  • @codemenath
    @codemenath Před rokem

    pretty cool and straightforward👏

  • @cryptoalert6331
    @cryptoalert6331 Před 3 lety

    Very Nice, crystal clear tutorial, keep it up!

  • @schafercunningham
    @schafercunningham Před 2 lety

    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

  • @therschannel1180
    @therschannel1180 Před 4 lety +6

    Great video, I was wondering how I would go about trying to send an audio attachment through python?

  • @maheshmichael6955
    @maheshmichael6955 Před 2 lety

    just simple and amazing the video and the explanations

  • @rohanramesh100
    @rohanramesh100 Před 2 lety +1

    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!

  • @lguilland
    @lguilland Před 2 lety

    Thanks! Very helpful.

  • @linxx1184
    @linxx1184 Před 2 lety

    very useful tutorial...thanks for sharing this knowledge, this is a game changer!!

  • @Ethan-101-
    @Ethan-101- Před 2 lety +1

    Thank you 😊

  • @andythomson2227
    @andythomson2227 Před 3 lety +1

    thanku brother sharing this knowledge

  • @georgethornburg4882
    @georgethornburg4882 Před 2 lety

    Awesome video! Thank you. You wouldn't happen to be from Massachusetts?

  • @riches8568
    @riches8568 Před 4 lety +4

    Cant pip install.. error: no matching distribution found for smtplib

    • @abhinav2584
      @abhinav2584 Před 3 lety +1

      its found default within ur python libraries

  • @xerogaming2127
    @xerogaming2127 Před 2 lety +1

    Are There any charges associated with sms services if we are using this for a large database ??

  • @Knowledge60seconds
    @Knowledge60seconds Před 2 lety

    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

  • @stefanopanzarasa9821
    @stefanopanzarasa9821 Před 2 lety

    Great job, tanks a lot!

  • @digitalmachine0101
    @digitalmachine0101 Před 3 měsíci

    Good information

  • @tanganhminh9138
    @tanganhminh9138 Před rokem

    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.

  • @palaorocio4358
    @palaorocio4358 Před 4 lety

    Dude, you are amazing!!
    I’ve been trying to fix an issue that I have on an app that I’ve been working on. Thanks to this video I was able to solve it. Thank you for you time. 👍🏽👊🏽🙏🏽

    • @ClarityCoders
      @ClarityCoders  Před 3 lety

      No thank you for watching we got more cool stuff coming out soon!

  • @TopSecretBase
    @TopSecretBase Před 3 lety

    Beautiful. Thank you!

  • @Old_SDC
    @Old_SDC Před 2 lety

    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

  • @jacobolson1331
    @jacobolson1331 Před 2 lety

    Awesome job!

  • @sanketgudade6378
    @sanketgudade6378 Před 8 dny

    thank u so much❤❤❤❤❤

  • @dennisoutlet2092
    @dennisoutlet2092 Před rokem

    This really good bro. Where is the video to illustrate how I can import this function to my project

  • @rammaddirala6857
    @rammaddirala6857 Před 3 lety

    I can see... That this is a cool video so i subbed.

  • @stuclott4056
    @stuclott4056 Před 4 lety +1

    Awesome video!!

  • @firealarmapprentice4517

    I want to send a text message that will read a certain string from a serial port under the right conditions.

  • @appleninja360
    @appleninja360 Před 2 lety

    I love you dude.

  • @user-il1hu5xp2x
    @user-il1hu5xp2x Před 2 lety

    thank it works

    • @user-il1hu5xp2x
      @user-il1hu5xp2x Před 2 lety

      for the phone, it will not work because im not living in us

  • @davidhuang577
    @davidhuang577 Před 3 lety +1

    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?

  • @user-fu4dr1jc3n
    @user-fu4dr1jc3n Před 5 měsíci

    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?

  • @yusufmalikul
    @yusufmalikul Před 2 lety

    You can also consider Slack to send alerts.

  • @fabienburguera386
    @fabienburguera386 Před 2 lety

    Thank you

  • @hoacpu
    @hoacpu Před 2 lety

    Thanks alot

  • @SurrealBackrooms
    @SurrealBackrooms Před 3 lety +1

    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.

    • @ClarityCoders
      @ClarityCoders  Před 3 lety

      Yeah this has caught a few people thanks for commenting and watching!

  • @tanliying3444
    @tanliying3444 Před 3 lety +1

    hi, I've received this error, any idea how to solve it?
    from email.message import EmailMessage
    ImportError: cannot import name EmailMessage

  • @briansmith3134
    @briansmith3134 Před měsícem

    Thanks

  • @leoandoh5829
    @leoandoh5829 Před 3 lety

    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

  • @zemingzhang1423
    @zemingzhang1423 Před 3 lety

    VERY HELPFUL THX!!

  • @moeghamdi6553
    @moeghamdi6553 Před 3 lety

    Great video man! I was wondering if you can have the program send a text message based on a certain date in the future?

    • @callumbrowne2081
      @callumbrowne2081 Před 2 lety

      I’m sure you can! Import datetime and mess around with Booleans for the time/date you want to use

  • @Pankaj-Verma-
    @Pankaj-Verma- Před 6 měsíci

    Thanks.

  • @FRANKWHITE1996
    @FRANKWHITE1996 Před 3 lety

    Great video thanks

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 Před 2 lety

    Thanks a lot. ❤️

  • @hector5749
    @hector5749 Před 4 lety +1

    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!!

    • @ClarityCoders
      @ClarityCoders  Před 4 lety +1

      You could work it into a Flask web app or really any other project depending on the situation.

  • @esj110
    @esj110 Před 3 lety

    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

    • @ClarityCoders
      @ClarityCoders  Před 3 lety

      Thanks for watching and really great suggestions. I will look into them!

  • @learncoding_8117
    @learncoding_8117 Před 3 lety

    Thank you so much

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 Před rokem

    I'm from India, which Career should I use to send text message?

  • @cadence_wav2423
    @cadence_wav2423 Před rokem

    Sad news guys google just removes their third party access feature since May 30 , 2022

    • @ClarityCoders
      @ClarityCoders  Před rokem +1

      This is still working today and I still use it! support.google.com/accounts/answer/3466521?hl=en

  • @yorstrulyyy
    @yorstrulyyy Před 21 dnem

    How to send alerts to many people at the same time?

  • @bmt123inh2
    @bmt123inh2 Před 3 lety

    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

  • @keremy150
    @keremy150 Před 3 lety +1

    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?

    • @bradstrange1374
      @bradstrange1374 Před 3 lety

      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.

  • @acb_gamez
    @acb_gamez Před 2 lety

    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?

  • @vishalkamble1722
    @vishalkamble1722 Před 3 lety

    Great 👍
    Thanks a lot ❤️

  • @hananemeftahi202
    @hananemeftahi202 Před 2 lety

    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

  • @blazesmith5046
    @blazesmith5046 Před 2 lety

    Do the new protocols block this as spam for sms? I can get emails, but the texts never come through

  • @dougnintzel4655
    @dougnintzel4655 Před rokem

    Unfortunately, it seems carriers such as AT&T, Verizon, T-Mobile are strictly limiting the # of texts using their gateways. Does anyone know of a way to "whitelist" a server to avoid email2texts being blocked?

  • @unknownname9832
    @unknownname9832 Před 3 lety

    Thank you!

  • @b391i
    @b391i Před 3 lety

    Good Job My Friend 🥰👍

  • @adarshp6930
    @adarshp6930 Před rokem

    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?

  • @Moist_yet_Crispy
    @Moist_yet_Crispy Před 2 lety

    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 :)

  • @kostaszafolias
    @kostaszafolias Před 3 lety

    great tutorial but i have a question.What terminal do you use on the video?

  • @Lally219
    @Lally219 Před 2 lety

    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..

    • @ClarityCoders
      @ClarityCoders  Před 2 lety

      Jump in our discord and someone can help you out!

  • @ibrahimjatau809
    @ibrahimjatau809 Před 3 lety

    precise and effective, thank you for your work, pls keep up the good work. a sub from me

  • @jaden7674
    @jaden7674 Před 2 lety

    Great tutorial. Is there a way to get what they respond with?

  • @hegdes.adventure
    @hegdes.adventure Před 3 lety

    RuntimeError: No SSL support included in this Python

  • @TheAlarm-cat
    @TheAlarm-cat Před 2 lety

    Thank you it works fine

  • @Rubbernecker
    @Rubbernecker Před 2 lety

    Awesome!!!

  • @InfographieMania
    @InfographieMania Před 3 lety

    When I run the script I see this error
    ==> AttributeError: 'NoneType' object has no attribute 'decode'

  • @ackerh9181
    @ackerh9181 Před 3 lety

    This is very helpful and easy to understand 😄 ..sir , i wanna create a bot by which we can scrap members from another telegram channel ..can you please help

    • @ClarityCoders
      @ClarityCoders  Před 3 lety

      Ohhhhhh sounds interesting I'll check into it.

  • @fishworxify
    @fishworxify Před 3 lety

    hey, great tutorial, it worked. I can send an email from pyhton. However, when i run thru crontab, it wont send? Do you know a fix?? (Yes, python code does run in crontab, it just doesnt send email)

    • @fishworxify
      @fishworxify Před 3 lety

      all good, got it working..... was reading a csv file which didnt have the full path....

    • @ClarityCoders
      @ClarityCoders  Před 3 lety

      Good to hear thanks for watching.

  • @techbehindus5197
    @techbehindus5197 Před 2 lety

    Code runs correctly but no one message can come

  • @code-grammardude5974
    @code-grammardude5974 Před 2 lety

    you are awesome

  • @HUB-E-BRO
    @HUB-E-BRO Před 9 měsíci

    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?

  • @XiaoHC
    @XiaoHC Před 2 lety

    Does anyone knows, why my GMS soft soft is diffrent ?