Sending Email using Python in 5 statements

Поділитися
Вставка

КОМЕНТАРІ • 159

  • @Telusko
    @Telusko  2 роки тому +6

    Python full Playlist : bit.ly/3y2pzbA

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

      can we send in bulk ? if yes sir then how? can you provide script for that 🙏

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

      Sir, please make a video class about AI in python

    • @JamesLee-99990
      @JamesLee-99990 Рік тому

      If at your work, you've developed a python web scrapping, and you want to setup an email alert/notification if the web scrapping program fails. How you develop an email alert/notification?

  • @l4dybu9
    @l4dybu9 3 роки тому +31

    Unlike other youtubers , u didn't just show us to write 5 lines of code..
    But u cover and explain all the related topics and terms .. that's really helpful and appreciable... 👍🏻😊🙌🏻🙌🏻

  • @revanthsair8143
    @revanthsair8143 3 роки тому +41

    Please do videos like this anna! Like how to automate daily tasks

  • @unicyclechinese3125
    @unicyclechinese3125 2 роки тому +10

    I wish this still worked, Google no longer allows "less-secure" apps....😡

  • @KiritoPanda
    @KiritoPanda Рік тому +2

    Yesssz ban gaya mere 12th ka project :)
    I'll maybe add more things to it
    Thanks for the idea!!
    POV : if you face authentication error just enable 2 step verification then
    Account setting --> Security-->App password
    Copy the app password for gmail and paste in in your code.

  • @aksheshdoshi
    @aksheshdoshi 2 роки тому +5

    Great video! FYI, now Google gives the option to create an "app password" under "Manage your Google account" -> "Security"; so this can be used to avoid turning on access for less secure apps.

  • @Rajadahana
    @Rajadahana 2 роки тому +5

    I got the same error, so tried with another mail and got the same error. I was following your video along. But you mentioned the error at the last minute.
    Learnt a great lesson, there must always be a way around a problem. :-D

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

    I am blessed to watch within 2nd minute of upload.

  • @Rajadahana
    @Rajadahana 2 роки тому +6

    Goolge has changed its conditions. I would like to mention the notice given by google for your information.
    Less secure apps & your Google Account
    To help keep your account secure, from May 30, 2022, ​​Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
    Important: This deadline does not apply to Google Workspace or Google Cloud Identity customers. The enforcement date for these customers will be announced on the Workspace blog at a later date.

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

      Coz of this condition now I'm not able to send mail. Any solution?!

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

      @@mansibarot8679 I am sorry, I am a novice in Python at this moment, hope an expert will come up with a solution for you. 👍

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

      @@mansibarot8679 ikr🥲

  • @Tanmoyflute
    @Tanmoyflute Рік тому +4

    this thing no longer supports on gmail

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

    You can no longer enable third-party access as shown in the video, instead you must create an app password and use that in place of your normal login. See other comments on the video for information on that, fixed the issue for me!

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

    What i like about naveen sir, no unnecessary promotion in his video. I have completed python series now learning django.

    • @Sk-hl9sn
      @Sk-hl9sn Рік тому

      Brother ...Can we learn Python here from sractch and be come expert?

  • @l4dybu9
    @l4dybu9 3 роки тому +11

    Yeah, password was changed 12 hours ago .. damn 😂😂
    Keep uploading such vids, we get to learn a lot 🙌🏻🙌🏻

  • @Avinash123avinash
    @Avinash123avinash 3 роки тому +12

    Sir if you could show how to add excel as attachment on top of this video, it would be great!!

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

    anna do we need internet connection while running this code?

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

    Please make a detailed video about how to send a detailed email with subject and some attachment using python

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

    Please do video's on all libraries in python and how to use and where to use

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

    I would love to see a more indepth video implimenting subject and other aspects of email and hopifully some txt messages as well! Love the video and subscribed.

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

    Sir please do upload more videos on python project for beginners
    Thank you ❤️

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

    Sir am doing mca so i just started learning python ....am watching ur video daily ...❤️

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

    MANAGE UR GOOGLE ACCOUNT --> SECURITY -->APP PASSWORDS --> SELECT MAIL APP --> SELECT COMPUTER WINDOWS --> GENERATE PASSWORD --> FILL THAT PASSWORD IN UR PYTHON CODE IN PLACE OF UR ID-PASSWORD -->THAT'S IT......................
    thanks me later

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

      Thank you so much. @Telusko please pin this message. I would like to add that this workaround requires one to enable 2-step verification on their sender's mail id.

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

    Bhaiya it is showing smtlib.SMTPAuthentication Error

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

    thanku bhai @naveen sir with out your help i couldn't complete my friends project .. once again thanking u sir heart fully

  • @juwannorah9118
    @juwannorah9118 6 днів тому

    This video is awesome, as are you! Many thanks for sharing this, it’s greatly appreciated.

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

    it was fun to send an email,Now let us know how can we implement similar stuff in production env to share status file or so on from my python console.Thanks))

  • @hmmgmm2841
    @hmmgmm2841 Рік тому +2

    how much time u gonna mention that u gonna change the password 🤣🤣😂😂.Quite hilarious

  • @VinayVishwanath-v9u
    @VinayVishwanath-v9u 4 місяці тому

    Very informative Thanks

  • @cihancay7819
    @cihancay7819 2 роки тому +5

    Hello mate, great video and I love that you explain everything you are dong in an understandable manner, I just have one problem though apparently google no longer allows third party less secure applications to access gmail and I cannot tick the option that you specifically explained that I should tick. Is there a way to work around this problem? Maybe you might update your video?

    • @md.iftesaralam8630
      @md.iftesaralam8630 2 роки тому +2

      Bro you can go and set app password in the security tab and set a password for your email

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

      @@md.iftesaralam8630 Yeah, I found that option from another video thank you though.

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

      Dude share that video please

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

    Want more videos like this!

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

    One of the best teachers I know on youtube...I really appreciate you my Alien😄great explanations

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

    working, and excellent explanation, thanks

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

    I'm building an automated game bot. Is it possible to have the program email you as part of an IF statement?
    In my case, it would be neat to have the program notify me if a valuable piece of gear or loot dropped.

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

    Nice sir

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

    We want more videos on email automation please..

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

    Yes sir we want more on this..

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

    Which IDE you are using?

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

    yes more tutorials on sending and receiving emails

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

    nice, i was also getting error while sending the mail, then i created a 16 digit application specific password and it worked. through this i don't have to enable less secure app access!!

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

    Thank you sir for such great videos
    Sir please share video of how to add subject, cc, bcc and how to read mail from python code

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

    Please tell us some project ideas that we do for implementing python in real....and also for resume

  • @JamesLee-99990
    @JamesLee-99990 Рік тому

    If at your work, you've developed a python web scrapping, and you want to setup an email alert/notification if the web scrapping program fails. How you develop an email alert/notification?

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

    Thanks for the tutorial man but sadly now google has turned off the less secure app access option so i cant send emails from python🙁 pls help

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

    which environment u r using in above session to run python code

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

    have you made the video for adding subject and attachment?

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

    Great tutorial! Thank you! I had been trying to do this and you made it really easy!

  • @ShivaKumar-gt9je
    @ShivaKumar-gt9je 2 роки тому +1

    Sir recently google has disabled the option "less secure app access" I couldn't able to enable it please help me out :(

  • @amirael-shekhi3386
    @amirael-shekhi3386 2 роки тому

    Thank you so much for this tutorial
    But is there any way to include a subject in sendmail command?

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

    Should i have to close the server connection at end or no need?

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

    is it possible to add subject of mail??

  • @vinothkumar-zg2bp
    @vinothkumar-zg2bp 3 роки тому +2

    Can you please explain how to read latest mail

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

    Hey navin, google disabled the option of allowing less secure apps access(since may 2022), so I am stuck. Can anyone suggest an alternate way?

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

    Can you guide me on which python library to use and how to create and python script which uses TLS v1.3 ?

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

    Why do u import smtp library and not pop for mail transfer in python sir ?? 🙏🏾

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

    Sir, how to run a subprocess in memory, I mean, if I want to run another process but I decrypted the executable in memory(variable), how to do that with python ?

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

    We want more videos like this real application

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

    but why cant I, setup a SMTP server on my local machine and Send that email directly from my machine??

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

    Can you provide the professional way of doing the same thing?

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

    Hello sir, How come automating E mails in python from Outlook or G mail to all domain email users. Is it possible?

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

    Thanks for this video..could you pls tell how to set sensitivity label for email using smtp python

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

    But where we will get the port number or its by default using

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

    I have been trying this for hours and I get this error: TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

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

    Thank you. good information

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

    google has removed "less secure" option from setting..it's by default Off now...so what can we do??

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

    I love this channel

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

    nice video, make another one about how to receive mail

  • @PoojaVerma-zr2nk
    @PoojaVerma-zr2nk 2 роки тому

    I my code when I said import smtplib, it is greyed out. How we can import it?

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

    Very nice thankyou

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

    I am a big fan of you sir

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

    Am a very big fun of yours but am just wondering how different is this program from writing the email itself in the gmail app...actually it involves more work

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

      it is for automation it is not intended as sending a normal mail think about the email you recieve when you click on "forgot password"

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

    hey dude,actually i tried it but i am getting an error i am trying to fix it but no use please tell me how to fix it.this is the error:TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.please tell me how to fix it

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

    Please make video on securely sending email without revealing your password

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

      you will need a domain and a google workspace subscription or you will have to register an email when you will buy a domain in any case it won't be free anymore

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

    Google blocked less secure service from may,30,2022 what to do now ?

  • @YuvrajSingh-ov5ih
    @YuvrajSingh-ov5ih Рік тому

    it is not working that option is not available currently google has removed it what should i do now ?

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

    i would like to know how i can hide recipents, i mean i dont want that people who is on my recipent could also see who else i sent mails, i wanna keep that private

  • @saipranaydeepjonnalagadda4561
    @saipranaydeepjonnalagadda4561 8 місяців тому

    Note: Less secure apps access is not available now..

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

    Please make a video for file transfer through mail.

  • @AmanKumar-ys4sj
    @AmanKumar-ys4sj 3 роки тому

    Can you tell how setup vscode for python development

  • @ShubhamSingh-cy3jm
    @ShubhamSingh-cy3jm Рік тому

    What if we want to send some test data generated?

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

    how can we create the email in the new window of the email client ?

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

    This is amazing!!

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

    Put video for socket

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

    I have 2 email ids loaded in my outlook. One is shared mail box. Plz let me know how i can send email using shared mail box. It do not have any password. Plz help

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

    Sir, how can we add a subject to it??

  • @LALITKUMAR-mq5it
    @LALITKUMAR-mq5it 2 роки тому

    This doesn't work anymore. Probably because of two factor authentication in gmail, we cant log in just with email and password. Hence ,not working.

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

    Hlo sir can u just make a video ,how to send outlook mail with attaching zip file using python

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

    Hey Navin,
    How r u doing?
    Pls make a video how to send attachments with that smtplib module...

  • @priyank5161
    @priyank5161 7 місяців тому

    Less secure app isnt available now so... Is there any other way to do the same?

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

      "Beginning September 30, 2024: third-party apps that use only a password to access Google Accounts and Google Sync will no longer be supported" quoted from google, you need to use signin with google functionality to be able to access the email sending and receiving functionality.

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

      @@magnumozeus so no way?
      Bruh

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

    It might be a REAL GOOD IDEA to post the code

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

    What should i do if i need to mention the subject and heading if anyone know plss reply

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

    How can we do it using mautic mail?

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

    Big fan❤️🙏

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

    I dont think this video is not valid anymore.
    From May 30, 2022, ​​ ​​Google no longer supports the use of third-party apps or devices. so you can enable that "less secure option anymore" in settings anymore.

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

      I have no idea what you just messaged. Please fix the grammar.

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

      ​@@Prongsie2 Yeah, I just read that. I also have no idea what i wrote there. Maybe i was high when i wrote it 🤣

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

    Getting getaddrs error.. what to do??

  • @rish.p5637
    @rish.p5637 2 роки тому

    bro, google just stopped allowing users the access to turn of less secure option from 30 may 2022 and today was the day I open and tried this. Please create another video with upto date ones please

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

    mine is not working inspite of having valid credentials

  • @ROMAN-zu3wu
    @ROMAN-zu3wu 3 роки тому

    Nice

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

    imagine doing this to your friends using multiple accounts in a while loop XD

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

    this code will be useless after 30 May 2022 cause google will remove the security settings so the only way to send an email from a third party will be buying a domain and a google workspace subscription

  • @20_chitreshmourya58
    @20_chitreshmourya58 2 роки тому

    Hey this method no longer usable , please make video of new method 🙏

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

    nice...