How to Send Emails with Python [New Method 2023]

Поделиться
HTML-код
  • Опубликовано: 2 янв 2025

Комментарии • 363

  • @ThePyCoach
    @ThePyCoach  Год назад +10

    For those asking. Here's how you can add attachments and send emails to multiple receivers: ruclips.net/video/ANCKLzvvO5A/видео.html

  • @EngineerFormidable
    @EngineerFormidable 2 года назад +89

    Works perfectly, thank you. Literally spent 3 days looking for something as simple as this. Thanks a lot !

  • @thisoldfox
    @thisoldfox 2 года назад +15

    I too spent many days trying to create emails with Python and this video showed me how. Thanks for the great video.

  • @wintermorillo6567
    @wintermorillo6567 2 года назад +5

    I spent almost a month trying to find a solution for this, and in less than 10 minutes I found the solution. Thank you for this tutorial.

  • @southvillechris
    @southvillechris Год назад +3

    Fantastic video - thank you so much! I've been banging my head against a wall trying to send smtp messages - and this one actually worked!

  • @siarnt3566
    @siarnt3566 2 года назад +6

    You are the GOAT for this video. I had a site that was running for so long sending emails with the "allow third party" setting on Gmail. Ever since they removed that feature I couldn't get it to work and all the other tutorials on RUclips were made before this was the case.
    Thank you so much for releasing this video promptly. I will definitely be checking out some more videos in the future!!

    • @ThePyCoach
      @ThePyCoach  2 года назад +2

      Yeah I know. That gave me extra motivation to make this video. Good timing!

    • @wcsdiaries
      @wcsdiaries 2 года назад

      @@ThePyCoach What do you do if it sends the email, but it just goes straight to junk mail? Does it matter which phone/browser you use? I noticed with iphone just sent email straight to junk, but android didn't

    • @-potato-god-2311
      @-potato-god-2311 Год назад

      @@wcsdiaries I'm guessing your iPhone has some option enables which sends automated messages into junk. I'm not too sure about it.

  • @d3f3kt57
    @d3f3kt57 Год назад +3

    Worked perfectly. I wasted 4 hours yesterday trying to get this to work with a much more complicated method involving setting up an SMTP server on localhost, which did not work.

  • @Raizun
    @Raizun 9 месяцев назад +2

    Thank you a lot! The best guide. Easy to write and it actually works!

  • @sakethkumarpeddi2089
    @sakethkumarpeddi2089 5 месяцев назад +1

    Man. You are just awesome. I've spent almost half of my day on how to send emails with free SMTP services. Thank you, Thank you so much. 😊

  • @labscience8271
    @labscience8271 2 года назад +14

    Thank you! I sent my first automated mail, and I have some plans to do with it. Very good explanation!

  • @jnrahm2038
    @jnrahm2038 2 года назад +2

    Took me so many failed attempts until I found your video. Worked first time, Thanks!!

  • @MsNd4Spd
    @MsNd4Spd 2 года назад +2

    After a whole week of trying out other methods, this one worked perfectly.

  • @claudiaedward8055
    @claudiaedward8055 Месяц назад

    Thank you very much! There are many videos about sending email with python but none works, this is the best video because it works!

  • @deekshantwadhwa
    @deekshantwadhwa 2 года назад +20

    Great work man, an IT company that my Dad uses in his office was asking for $5000 for this upgrade in the software they created for his office. After searching for the reason why the emails had stopped working from their software, what changes has Google brought forward and the fix (your video), I had a "chat" with them, and guess what, new budget = $100 which is still too much, but their mails are now working back again through their software. #KnowledgeIsPower

    • @larsenmathias4499
      @larsenmathias4499 7 месяцев назад

      Why dont you guys use services like msg91 its much better

    • @mfxtrading7027
      @mfxtrading7027 7 месяцев назад

      if the dev is in India - okay, otherwise you're just a cheap guy who should learn how to code

    • @TechySatvik
      @TechySatvik 7 месяцев назад

      wow

  • @msm_akbar
    @msm_akbar 2 года назад +3

    Thank you so much, Frank.
    My first Automated email was a success.

  • @uscbruin213
    @uscbruin213 2 года назад +2

    Amazing! I was searching Google and stack overflow for this all day and then watched your video and it was simple!

    • @ThePyCoach
      @ThePyCoach  2 года назад +2

      A couple of months ago I was searching like you and after hours I read that Google had changed his security ... in that moment I understood why the old tutorials didn't work

  • @Vexat1on
    @Vexat1on Год назад

    i don't even know how to say how thankfull i am for this video, i've benn trying to find the solution for past 2h thx so much

  • @JohnMcGuckin-e9y
    @JohnMcGuckin-e9y 10 месяцев назад

    been looking for a way to send emails in Python for ages, thanks for this!

  • @MichaelShingo
    @MichaelShingo Год назад +1

    Thank you, literally no other tutorial is up to date and clear like this one

  • @TharushikaHettiarachchi
    @TharushikaHettiarachchi Год назад

    This worked!! I spent so many days to find out a way. Thank you so much🤩

  • @SigmoidNOTIFY
    @SigmoidNOTIFY Год назад +1

    My god it worked! Thank you so much i was not expecting it to work that simple!

  • @impasible2783
    @impasible2783 10 месяцев назад

    Thanks man! I was trying to figure the hell out when I was not getting my credentials right in the beginning. You perfectly explained the right way to get the password

  • @marronnier17
    @marronnier17 4 месяца назад

    Thank you so much. You made a complicated ( for me) topic very straight forward. It worked first time. Of course Google has changed some of it's gmail setting screens and menu but otherwise perfect. Thanks again.

  • @grigorijdudnik575
    @grigorijdudnik575 Год назад +1

    Hey Frank, thanks for clear tutorial, It helped me to finally did that. I have little remark for it: as you hidden your app password, it was not obvious if words in password should be separated by spaces, or written in common, or even separated other way (after test I have response: spaces are ok). I suggest to make it more explicit, maybe next time to use some password which you'll delete before publishing the video.

  • @daniprajins8124
    @daniprajins8124 Год назад

    Works perfectly sir , i am a Data science student . That new Google policy made me sad . This video helps me a lot to complete my project

  • @rafaelfonseca7942
    @rafaelfonseca7942 Год назад +2

    Nice video. Worked flawlessly.
    Thanks for this great content!

  • @ShaikhAsif-u7r
    @ShaikhAsif-u7r Год назад +1

    Thanks for this video

  • @elenamurga1490
    @elenamurga1490 2 года назад

    I couldn't make flask-mail to work. This option made my day after 2 days of getting frustrated it! THANK YOU!!

  • @scale...3d
    @scale...3d 2 года назад +1

    Ah, finally, it works. The good thing about this method is that I can use it with my main email rather than making a new one with security off.

    • @ThePyCoach
      @ThePyCoach  2 года назад

      I think that’s the reason why Google removed the other option

  • @PoolMedia
    @PoolMedia Год назад

    I love you man, thank you so much! I appreciate you mentioning how to handle the SSL VERIFICATION ERROR!

  • @dadaolujare6940
    @dadaolujare6940 2 года назад

    Thank you so much for this video man. Was literally pulling my hair trying to get this done. Thanks again.

  • @inthefuture28
    @inthefuture28 2 года назад

    This video tutorial is very helpful, I followed and it worked, it solved the problem of "less secure app access" that google has no longer support that feature since May 30, 2022. Thank you for guiding us

  • @dimelosimba8631
    @dimelosimba8631 Год назад

    When someone and sits to explain it, it is so much easier. Was able to fix my code with this.

  • @trickwithtalk
    @trickwithtalk Год назад

    love you man you brought me out of this big struggle

  • @jyotsnak197
    @jyotsnak197 11 месяцев назад

    Amazing content with step by step walk throughs for an absolute beginner. Thanks so much!

  • @ashishjstar
    @ashishjstar 2 года назад +1

    It's working dude!! Thanks a lot 😀

  • @t7732155980
    @t7732155980 2 года назад +4

    Thanks, A simple and accurate step by step explanation. Works perfectly.

  • @broshv_
    @broshv_ Год назад

    Will use this to bulk-email my teachers whenever I’m too lazy 😂 thank you!

  • @ferozrayanr6454
    @ferozrayanr6454 10 месяцев назад

    Really helped me to automate my mail triggers! Thanks for your content

  • @rincondepython
    @rincondepython Год назад +1

    updating 2023: it's still working!

  • @Simeno10
    @Simeno10 2 месяца назад

    Thx man, I was struggling with sending email in Python.

  • @antoniogiraldez3064
    @antoniogiraldez3064 2 года назад

    It works great. After spending a lot of time looking for a solution finally I got in here, thank you very much for this video.

  • @MostlyVishwa
    @MostlyVishwa 11 месяцев назад

    Really made the hard task easy

  • @TechnoSpirit
    @TechnoSpirit 2 года назад +2

    Bless the creator of this video! An infinity of thanks will not be enough!

  • @ilaiosking3963
    @ilaiosking3963 Год назад +1

    Thank you very much! Worked on the first time

  • @NebesnyPlamen
    @NebesnyPlamen 7 месяцев назад

    Awesome, thank you. This new method isn't harder than the old one

  • @haktanhakkongun4321
    @haktanhakkongun4321 Год назад +1

    Very helpful and straightforward video. Thanks!

  • @alderiatefanclub1576
    @alderiatefanclub1576 2 года назад +3

    Thanks a lot ! Your video is crystal clear and helpful :)

  • @banafshehpouyanfar1610
    @banafshehpouyanfar1610 2 года назад

    THANK YOU!!! I've been looking for a way to do this for days.

  • @RodrygoDeSilva
    @RodrygoDeSilva 2 года назад +2

    Thank you so much bro but I have one question. I am getting a exited with code=1. I'm sure that means that there's one line of code that's wrong but I rechecked everything with your video and it matches yet I'm getting an error. Any advice you can give me? thanks.

  • @rawgosh
    @rawgosh 2 года назад

    thanks for the process to link the account with google I was facing too many errors this video solved it like it was nothing. I think I should question myself first.

  • @thekiddoquiz
    @thekiddoquiz Год назад +1

    Method working greatly👌

  • @ManNiteshRajkotiyaBCSE
    @ManNiteshRajkotiyaBCSE Год назад

    thank you so much old method was working for me when i change my email id it was not working due to google update but now i dont need to use google gmail api and you saved lot of time

  • @alexchequer1538
    @alexchequer1538 29 дней назад

    Great video! Super easy to do.

  • @mohsinaliirfan2186
    @mohsinaliirfan2186 11 месяцев назад

    you are a GOAT, the only tutorial that worked

  • @Halal_guy21
    @Halal_guy21 Год назад

    Thanks alot, I was really tired of the TimeOut Error. God bless you

  • @trickytibo
    @trickytibo 2 года назад +2

    Great tutorial, great teaching skills, crystal clear... Thanks, mate !

  • @khinezarthwe361
    @khinezarthwe361 Год назад

    Thanks for this video. That was really useful for me. I have done it and found zero error. Please also make a video for emailling with attachments.

  • @dhruvvaishnav6499
    @dhruvvaishnav6499 2 года назад

    Thanks dude for this . Love you frank andrade.

  • @luisguerreropenaranda3618
    @luisguerreropenaranda3618 Год назад

    Thank you so much! This video was amazing. Please don't stop doing this kind of tutorials

  • @godbernaz
    @godbernaz Год назад

    For someone who is starting, this tutorial helped me alot

  • @paulmoss4199
    @paulmoss4199 2 года назад

    Thanks very much, I have been struggling with how to do this for a while !!

  • @kishore.l3550
    @kishore.l3550 11 месяцев назад

    Nice clear video. BTW Quality of life change, we can use TLS protocol for security and it is much more easier to do.

  • @ollkorrect2900
    @ollkorrect2900 2 года назад

    Thanks a lot, this cured a headache I was having on this problem.

  • @vuinhduy8314
    @vuinhduy8314 7 месяцев назад

    Dear Sir,
    I'm appriciate your content. Help me alot to cut my work time.
    Best wish to you.

  • @floridajet138
    @floridajet138 2 года назад

    Best channel, WORKS WORKS WORKS

  • @shayemine9521
    @shayemine9521 Год назад

    Thank you so much I've been at this for days.

  • @webslinger2011
    @webslinger2011 2 года назад

    Thanks! Got my Email program working again.

    • @ThePyCoach
      @ThePyCoach  2 года назад +1

      You're welcome! More automation videos coming soon

  • @richardbrakoh4154
    @richardbrakoh4154 2 года назад +2

    I did the code the same on my house windows laptop and it works fine. However when I coded on my MacBook Pro, there was an error which says “No module named email.message; email is not a package “. Why is that?

  • @minakshisontake3585
    @minakshisontake3585 2 года назад

    thank you sir. your code is working well.good explanation😀.
    video for sent mail when critical error will occure using logging in python.

  • @Stay_Positive_live
    @Stay_Positive_live 2 года назад +1

    you're a genius

  • @everluck35
    @everluck35 Год назад

    Worked without issues, thanks!

  • @manuraghuvanshi2022
    @manuraghuvanshi2022 11 месяцев назад

    Great video, worked like a charm!

  • @johnreese8278
    @johnreese8278 Год назад

    Very nice! Clear instructions and easy to follow and understand.

  • @technicalaasaan633
    @technicalaasaan633 2 года назад +1

    thank you... I tried many way all are outdated one.

  • @prabhnoorsinghchowdhary7935
    @prabhnoorsinghchowdhary7935 2 года назад +1

    Man I am so grateful Thanks a lot

  • @lorenzoscandolara4941
    @lorenzoscandolara4941 6 месяцев назад

    You are the number 1, the best thanks a lot my friend

  • @mrgabriel6295
    @mrgabriel6295 Год назад +1

    Works perfectly but how about sending to bulk email, like having a list of emails in a txt/csv file and sending via python. I will appreciate your response. Thanks 💖💖💖

  • @HomiePlaysYT
    @HomiePlaysYT Год назад +1

    This video saved my ass, I was so frustated when a project which I made about 2 years ago broke. First it took me time to realize why it was breaking then I saw that google changed its policy. Anyways thnx.

    • @ThePyCoach
      @ThePyCoach  Год назад

      You're welcome. Just today I uploaded a new video about this. The method is still working. I just added more things like how to add attachments and send emails to multiple receivers!

  • @ramyamurugesh9271
    @ramyamurugesh9271 Год назад

    Thanks a lot for this video!! it worked for me

  • @EZ_Coding_YT
    @EZ_Coding_YT 2 года назад

    This worked like a charm, thank you so much!!!

  • @Wallope
    @Wallope Год назад

    This Worked! Thanks so much!

  • @Levendo
    @Levendo 3 месяца назад

    Thanks! Finally, a working solution!!

  • @rykerlow
    @rykerlow Год назад

    This is amazing! Such a simple solution.😀

  • @kevinshen3221
    @kevinshen3221 2 года назад

    thanks a lot! your method is the only one works so far. wonder how I can add an attachment to the email with this method?

  • @matteodondi7109
    @matteodondi7109 2 года назад

    WHy everyone in the forums suggest complicated solutions and you, on the other hand, have solved all my problems so easily? THANK YOU

  • @twisted-t
    @twisted-t Год назад

    Jesus Christ man!! Thank you!! Hours and hours of banging my head against a wall and trying to find a free and reliable solution and it was so simple! You saved my project!

  • @cliffaltubar
    @cliffaltubar Год назад

    Very helpful👏♥️

  • @martvink8723
    @martvink8723 Год назад +1

    Great video, to the point and explained very well!

  • @P4nDA_pls
    @P4nDA_pls Год назад

    Excellent video, perfect for a beginner.

  • @KitingPanda
    @KitingPanda Год назад

    Good job man, this really helped

  • @ParilakshyaPuri
    @ParilakshyaPuri Год назад

    This works so well!! Thank you!!!

  • @RainerDiehl-d3e
    @RainerDiehl-d3e Год назад

    very helpful, you made my day!

  • @hesamrasouli
    @hesamrasouli Год назад

    Your solution really worked.
    Thank you so much

  • @divyanshagrawal4477
    @divyanshagrawal4477 Месяц назад

    seriously a life saver

  • @ЕвгенийЕфремов-ф6е

    It works for me. Thank you!

  • @Ramlakhan-25
    @Ramlakhan-25 10 месяцев назад

    this works! Thank you.
    Just one question, how we can use this for sending bulk emails separately to each user without keeping them all in one email?

  • @ОлександрБілоус-м5ъ
    @ОлександрБілоус-м5ъ 9 месяцев назад

    Thank you for google settings part!

  • @chestadhingra2611
    @chestadhingra2611 Год назад +1

    The video is very informative, but while following along I am getting the error "Application-specific password require". Though I have generated the app password in the gmail and 2-step verfication is also on. Could anyone help? Thanks in advance

  • @vedantmrinalbansal1204
    @vedantmrinalbansal1204 2 года назад

    Man you are a life saver....!!!!