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.
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 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
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
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
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.
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.
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
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
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?
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.
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
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.
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
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 💖💖💖
I have problem creaite a app passwords - there was an error generating an app password. I have tried below methods: 1) signing out all others google account while creating app password 2) Using a different IP while attempting creating app password. Yet I still have this error message popping up. Do you have any recommendation please?
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.
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!
Nice video, thanks! However, that apppasswords url does not work for me. It's odd that you edit the URL like that, instead of going via the google account page: Security -> 2 step verification -> scroll to bottom -> you will see App Passwords. Click, when you get there I get essentially the same as you, but I can't select a specific app and language, i can only create a generic app password.
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?
What if I want to write the script for myself and never share it, should I also save the password as an env variable? (also thanks for the tutorial, exim don't want to work so this is very useful for me)
Can you please help me? I am having some issues. It's saying. Traceback (most recent call last): From email message import: EmailMessage ImportError: cannot import name EmailMessage
HI bro i am getting an error in my code and i tried everything please tell me how can I get rid of 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.please tell me what is wrong with my code and how i can correct it?
when i run the file i always got this error : No module named 'email.message'; 'email' is not a package I intall pip email but it still dont work, can someone help me please
Did not work for me. I get time out error: [win error 10060] a connection attempt failed because the connected party did not properly respond.... Any tips?
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
can you help me understand the password bit? so we create an app password that will allow python to use it for the smtplib library, with this generated 16 character password if it gets leaked, would people be able to log into my gmail account?
I'm getting the following error, how do I fix it? 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
For those asking. Here's how you can add attachments and send emails to multiple receivers: ruclips.net/video/ANCKLzvvO5A/видео.html
Works perfectly, thank you. Literally spent 3 days looking for something as simple as this. Thanks a lot !
I too spent many days trying to create emails with Python and this video showed me how. Thanks for the great video.
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.
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!
Thank you! I sent my first automated mail, and I have some plans to do with it. Very good explanation!
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.
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!!
Yeah I know. That gave me extra motivation to make this video. Good timing!
@@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
@@wcsdiaries I'm guessing your iPhone has some option enables which sends automated messages into junk. I'm not too sure about it.
After a whole week of trying out other methods, this one worked perfectly.
Took me so many failed attempts until I found your video. Worked first time, Thanks!!
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
Why dont you guys use services like msg91 its much better
if the dev is in India - okay, otherwise you're just a cheap guy who should learn how to code
wow
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. 😊
Thank you so much, Frank.
My first Automated email was a success.
Thank you a lot! The best guide. Easy to write and it actually works!
Amazing! I was searching Google and stack overflow for this all day and then watched your video and it was simple!
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
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.
I think that’s the reason why Google removed the other option
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.
been looking for a way to send emails in Python for ages, thanks for this!
I couldn't make flask-mail to work. This option made my day after 2 days of getting frustrated it! THANK YOU!!
When someone and sits to explain it, it is so much easier. Was able to fix my code with this.
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.
Thank you, literally no other tutorial is up to date and clear like this one
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
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
Bless the creator of this video! An infinity of thanks will not be enough!
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
My god it worked! Thank you so much i was not expecting it to work that simple!
Thanks for sharing the video! I'm curious, do you think there's a risk of the emails getting flagged as spam?
Will use this to bulk-email my teachers whenever I’m too lazy 😂 thank you!
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
I love you man, thank you so much! I appreciate you mentioning how to handle the SSL VERIFICATION ERROR!
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?
Really helped me to automate my mail triggers! Thanks for your content
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.
Amazing content with step by step walk throughs for an absolute beginner. Thanks so much!
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
Thank you so much for this video man. Was literally pulling my hair trying to get this done. Thanks again.
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?
Thank you very much! Worked on the first time
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.
Awesome, thank you. This new method isn't harder than the old one
For someone who is starting, this tutorial helped me alot
Thanks alot, I was really tired of the TimeOut Error. God bless you
This worked!! I spent so many days to find out a way. Thank you so much🤩
THANK YOU!!! I've been looking for a way to do this for days.
love you man you brought me out of this big struggle
Thanks, A simple and accurate step by step explanation. Works perfectly.
Glad it helped!
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
Thanks! Got my Email program working again.
You're welcome! More automation videos coming soon
Thanks very much, I have been struggling with how to do this for a while !!
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 💖💖💖
This is what I came here to ask.
WHy everyone in the forums suggest complicated solutions and you, on the other hand, have solved all my problems so easily? THANK YOU
I have problem creaite a app passwords - there was an error generating an app password.
I have tried below methods:
1) signing out all others google account while creating app password
2) Using a different IP while attempting creating app password.
Yet I still have this error message popping up. Do you have any recommendation please?
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.
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!
Nice video. Worked flawlessly.
Thanks for this great content!
thank you... I tried many way all are outdated one.
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.
Nice video, thanks! However, that apppasswords url does not work for me. It's odd that you edit the URL like that, instead of going via the google account page: Security -> 2 step verification -> scroll to bottom -> you will see App Passwords. Click, when you get there I get essentially the same as you, but I can't select a specific app and language, i can only create a generic app password.
can this method be used to send bulk email for marketing?
Very helpful and straightforward video. Thanks!
Thanks a lot, this cured a headache I was having on this problem.
Thanks a lot ! Your video is crystal clear and helpful :)
Thank you so much I've been at this for days.
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?
Will the 'To' key accept a list of emails (or a string of multiple emails), or is a loop needed for multiple recipients?
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.
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?
Thanks a lot! If I may ask, how would you go about sending an attached file through this method?
Thanks for this video
For email.message which package is necessary to install?...
did you resolve the probleme?
Were you able to find a method or a proper alternative to add Bcc emails?
updating 2023: it's still working!
how can i send that email to multiple receivers ? I can store the other receivers in a list or just write a string with all the emails ?
Thank you for google settings part!
PHPMailer works perfect too, thank you.
Nice clear video. BTW Quality of life change, we can use TLS protocol for security and it is much more easier to do.
Plain and simple, thank you.
What if I want to write the script for myself and never share it, should I also save the password as an env variable?
(also thanks for the tutorial, exim don't want to work so this is very useful for me)
Can you please help me? I am having some issues. It's saying.
Traceback (most recent call last):
From email message import: EmailMessage
ImportError: cannot import name EmailMessage
Thank you so much! This video was amazing. Please don't stop doing this kind of tutorials
Really made the hard task easy
HI bro i am getting an error in my code and i tried everything please tell me how can I get rid of 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.please tell me what is wrong with my code and how i can correct it?
when i run the file i always got this error : No module named 'email.message'; 'email' is not a package
I intall pip email but it still dont work, can someone help me please
I have a question... Is there a risk of your mail being sent to the spam folder?
Did not work for me. I get time out error: [win error 10060] a connection attempt failed because the connected party did not properly respond....
Any tips?
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
you are a GOAT, the only tutorial that worked
Dear Sir,
I'm appriciate your content. Help me alot to cut my work time.
Best wish to you.
can you help me understand the password bit? so we create an app password that will allow python to use it for the smtplib library, with this generated 16 character password if it gets leaked, would people be able to log into my gmail account?
i have an issue with from email.message line it pops up the error as email.message doesnot exist could you please help me
Thanks! Finally, a working solution!!
Hi Pycoach. I had some dificults to set the security from gmail but he process happend with sucess! Ths for the video!
Thanks dude for this . Love you frank andrade.
Worked without issues, thanks!
Thank you ! still working as of now.
how can I include text from a text file in the body message? The text file contains results of a script.
It's working dude!! Thanks a lot 😀
I'm getting the following error, how do I fix it?
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
You are the man! Thank you very much, and God bless.
Great tutorial, great teaching skills, crystal clear... Thanks, mate !