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!

КОМЕНТАРІ • 288

  • @David-qd4it
    @David-qd4it 3 роки тому +33

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

  • @mitchelldyer5415
    @mitchelldyer5415 3 роки тому +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  3 роки тому +6

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

    • @joemckenzie4454
      @joemckenzie4454 3 роки тому +2

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

    • @mitchelldyer5415
      @mitchelldyer5415 3 роки тому +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 2 роки тому

      lol

  • @ambanna
    @ambanna 4 роки тому +5

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

  • @justinpaoloplaton7562
    @justinpaoloplaton7562 4 роки тому +8

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

    • @ClarityCoders
      @ClarityCoders  4 роки тому

      Thanks I really appreciate you watching!

  • @rayoh2011
    @rayoh2011 Рік тому +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!

  • @firealarmapprentice4517
    @firealarmapprentice4517 2 роки тому

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

  • @ishtarur
    @ishtarur 3 роки тому +9

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

    • @ClarityCoders
      @ClarityCoders  3 роки тому +6

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

    • @ClarityCoders
      @ClarityCoders  2 роки тому

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

  • @jorgesandoval5450
    @jorgesandoval5450 4 роки тому +5

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

    • @ClarityCoders
      @ClarityCoders  4 роки тому

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

  • @SurrealBackrooms
    @SurrealBackrooms 3 роки тому +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  3 роки тому

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

  • @riches8568
    @riches8568 4 роки тому +4

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

    • @abhinav2584
      @abhinav2584 3 роки тому +1

      its found default within ur python libraries

  • @therschannel1180
    @therschannel1180 4 роки тому +6

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

  • @rafaeldiaz6308
    @rafaeldiaz6308 2 роки тому

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

  • @xerogaming2127
    @xerogaming2127 2 роки тому +1

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

  • @chechecole5905
    @chechecole5905 4 роки тому

    That friggin worked! Thumbs up for you sir!

  • @krishpatil1788
    @krishpatil1788 13 днів тому

    All code makes sense! Thanks

  • @tiwariji9985
    @tiwariji9985 3 місяці тому

    ❤❤what an awesome explanation.. new subscriber

  • @samkumar6378
    @samkumar6378 Місяць тому +1

    thank u so much❤❤❤❤❤

  • @tanliying3444
    @tanliying3444 3 роки тому +1

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

  • @HUB-E-BRO
    @HUB-E-BRO 10 місяців тому

    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?

  • @ryanfernando8330
    @ryanfernando8330 2 роки тому +2

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

  • @rohanramesh100
    @rohanramesh100 2 роки тому +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!

  • @JoseJupiter21
    @JoseJupiter21 3 роки тому +4

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

  • @Jk2379-n5r
    @Jk2379-n5r 6 місяців тому

    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?

  • @davidhuang577
    @davidhuang577 3 роки тому +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?

  • @hashanmadusanka6128
    @hashanmadusanka6128 3 роки тому +1

    ooo my god its work ...........................................

  • @TopSecretBase
    @TopSecretBase 3 роки тому

    Beautiful. Thank you!

  • @amirmahditizchang5689
    @amirmahditizchang5689 27 днів тому

    Really helpful and understandable. Great job buddy!

  • @cerdafiedDeveloper
    @cerdafiedDeveloper 3 роки тому +3

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

  • @andythomson2227
    @andythomson2227 3 роки тому +1

    thanku brother sharing this knowledge

  • @Old_SDC
    @Old_SDC 2 роки тому

    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

  • @vinothv1720
    @vinothv1720 3 роки тому +3

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

  • @stuclott4056
    @stuclott4056 4 роки тому +1

    Awesome video!!

  • @acb_gamez
    @acb_gamez 2 роки тому

    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?

  • @Ethan-101-
    @Ethan-101- 2 роки тому +1

    Thank you 😊

  • @HitraNtheProgrammer
    @HitraNtheProgrammer 3 роки тому +2

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

  • @cadence_wav2423
    @cadence_wav2423 Рік тому

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

    • @ClarityCoders
      @ClarityCoders  Рік тому +1

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

  • @keremy150
    @keremy150 3 роки тому +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 3 роки тому

      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.

  • @dosinadasung7981
    @dosinadasung7981 4 роки тому +2

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

    • @ClarityCoders
      @ClarityCoders  4 роки тому

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

  • @techbehindus5197
    @techbehindus5197 2 роки тому

    Code runs correctly but no one message can come

  • @Knowledge60seconds
    @Knowledge60seconds 2 роки тому

    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

  • @leoandoh5829
    @leoandoh5829 3 роки тому

    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

  • @deejae_music
    @deejae_music 6 місяців тому

    can you like link the website here?

  • @yusufmalikul
    @yusufmalikul 2 роки тому

    You can also consider Slack to send alerts.

  • @mageshwari.r2979
    @mageshwari.r2979 2 роки тому

    I want this source code sir pls send sir

  • @tanganhminh9138
    @tanganhminh9138 Рік тому

    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.

  • @schafercunningham
    @schafercunningham 2 роки тому

    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

  • @artilleryisbetter
    @artilleryisbetter 2 роки тому

    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

  • @deepavk_queen
    @deepavk_queen 9 місяців тому

    Can we have a voice call text to speech

  • @BritainW3llz
    @BritainW3llz 3 місяці тому

    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.

  • @mageshwari.r2979
    @mageshwari.r2979 2 роки тому

    Pls send this source code pls ...

  • @hoacpu
    @hoacpu 2 роки тому

    Thanks alot

  • @peterkim9696
    @peterkim9696 Рік тому

    Is it free to send sms to my number ?

  • @firealarmapprentice4517
    @firealarmapprentice4517 2 роки тому

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

  • @hector5749
    @hector5749 4 роки тому +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  4 роки тому +1

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

  • @jaden7674
    @jaden7674 2 роки тому

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

  • @joadm5724
    @joadm5724 2 роки тому

    can i do this with whatsapp?

  • @newguy1308
    @newguy1308 3 роки тому +2

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

    • @ClarityCoders
      @ClarityCoders  3 роки тому

      Thank you.

    • @newguy1308
      @newguy1308 3 роки тому

      @@ClarityCoders anytime , keep up the good work! thanks again

  • @digitalmachine0101
    @digitalmachine0101 4 місяці тому

    Good information

  • @Th3CreeperStrike
    @Th3CreeperStrike 4 роки тому +2

    This works perfect. Thanks!

  • @adarshp6930
    @adarshp6930 Рік тому

    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?

  • @bmt123inh2
    @bmt123inh2 3 роки тому

    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

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 2 роки тому

    Thanks a lot. ❤️

  • @dennisoutlet2092
    @dennisoutlet2092 Рік тому

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

  • @hananemeftahi202
    @hananemeftahi202 2 роки тому

    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

  • @InfographieMania
    @InfographieMania 3 роки тому

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

  • @blazesmith5046
    @blazesmith5046 2 роки тому

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

  • @rishikreddy4526
    @rishikreddy4526 3 роки тому

    me is sabkribe :3

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 Рік тому

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

  • @wv1
    @wv1 3 роки тому +1

    Does it let you text other people using the email?

    • @ClarityCoders
      @ClarityCoders  3 роки тому

      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.

  • @نشامي
    @نشامي 2 роки тому

    thank it works

    • @نشامي
      @نشامي 2 роки тому

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

  • @mageshwari.r2979
    @mageshwari.r2979 2 роки тому

    hi sir i have one doubt sir, why you are use digital trends website..pls expline sie

  • @Pankaj-Verma-
    @Pankaj-Verma- 7 місяців тому

    Thanks.

  • @danielcerdeira1612
    @danielcerdeira1612 2 роки тому

    Is possible an alert of calling my phone from Python?

  • @anelisabolosha9934
    @anelisabolosha9934 Рік тому

    Hi, how would you get that port number: 587 you wrote there

  • @Mtnktown
    @Mtnktown Рік тому

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

  • @FastingDude
    @FastingDude 2 роки тому +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 2 роки тому

      do you use visual studio or visual studio code

    • @FastingDude
      @FastingDude 2 роки тому

      @@danial9705 VS Code

  • @abarnakalai1371
    @abarnakalai1371 2 роки тому

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

  • @linxx1184
    @linxx1184 2 роки тому

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

  • @Maria-m.D
    @Maria-m.D 3 роки тому

    how do I send an image using this, btw good video

  • @kostaszafolias
    @kostaszafolias 3 роки тому

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

  • @_jirkaa_5170
    @_jirkaa_5170 2 роки тому

    Thank you so much I search for bunch of tutorials

  • @lamiz3786
    @lamiz3786 3 роки тому

    i get a "authentification required" error

  • @karimmohamed12
    @karimmohamed12 2 роки тому

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

  • @maheshmichael6955
    @maheshmichael6955 2 роки тому

    just simple and amazing the video and the explanations

  • @xl-ub1gh
    @xl-ub1gh 2 роки тому

    This method is not working at all

    • @xl-ub1gh
      @xl-ub1gh 2 роки тому

      It is working! do not modify the port number 587

  • @yorstrulyyy
    @yorstrulyyy Місяць тому

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

  • @briansmith3134
    @briansmith3134 2 місяці тому

    Thanks

  • @annasc8280
    @annasc8280 2 роки тому

    Thanks a lot

  • @dropz285
    @dropz285 4 роки тому

    How can I make it send me an alert for a product on facebook marketplace?

  • @esj110
    @esj110 3 роки тому

    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  3 роки тому

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

  • @MwendwaMathias
    @MwendwaMathias 3 роки тому

    @clarity coders, can I get a similar code like this to make clinical email and sms reminders in Kenya please

  • @achrefaissaoui8338
    @achrefaissaoui8338 3 роки тому

    Is this working only in the US ?

    • @ClarityCoders
      @ClarityCoders  3 роки тому

      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.

  • @Moist_yet_Crispy
    @Moist_yet_Crispy 2 роки тому

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

  • @code-grammardude5974
    @code-grammardude5974 2 роки тому

    you are awesome

  • @themastergamer4631
    @themastergamer4631 3 роки тому

    did not work at all

    • @ClarityCoders
      @ClarityCoders  3 роки тому

      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

  • @lguilland
    @lguilland 2 роки тому

    Thanks! Very helpful.

  • @MuhammadZakaria140193
    @MuhammadZakaria140193 4 роки тому +1

    that SMS part looks hoax

  • @thomasj8496
    @thomasj8496 3 роки тому

    Is the code available on a repo?

  • @Lally219
    @Lally219 2 роки тому

    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  2 роки тому

      Jump in our discord and someone can help you out!

  • @appleninja360
    @appleninja360 2 роки тому

    I love you dude.