Send Emails With Python [UPDATED]
HTML-код
- Опубликовано: 3 авг 2022
- In this video you'll learn the new way on how to send emails with python.
Download All Free Resources - codewithtomi.eo.page/mz396
Subscribe To My Newsletter and Get A Free Python Handbook:
www.codewithtomi.com/p/newsle...
If You Enjoy This Video, please subscribe to the channel
Patreon - / tomitokko
Newsletter - www.codewithtomi.com/p/newsle...
Buy me a coffee - www.buymeacoffee.com/tomitokko
#python #codewithtomi #pythonprojects Наука
After trying like 3 different approaches with Google API, and 1 using Yahoo API, your solution finally worked ! Bless you man ! I wish you all the best and thank you once more !!!
Thanks man, was getting smtp error and there was no tutorial that helped. Keep the good work coming.
Thanks Tomi. You helped me so much with this tutorial❤
Thanks a lot for this sir.. I was really in search for the method .! ❤
Thanks a lot man, I've been searching for how to do this for weeks
Bro calls land ho raha hai ??
Have been waiting for this ❤️
Top Notch because this is the one tutorial that worked. Thank you bro!
Thanks a ton tomi !❤️
very instructive, thanks a bunch!
I love your accent man! Keep on going with those useful videos!
Excellent Tomi and thanks so much
This worked great, thank you.
Thanks so much ! You helped me a lot
Great job !
Thanks, this is work dude!
Thank you, Google was not letting me use my default password, and I had to use your guide to make it work!
Nice video. This helped me a lot
Thanks a lot bro. Works great
Great video thank you!
Thanks Bro, It helped me alot
Thanks bro, nicely explained ;)
Thank you so much for this
Thanks for this tutorial, I tried it with only smtp module but I kept getting the timeout error, but everything worked after following your tutorial.
it worked !!! thank you😘
Thanks bro!
Thank you very much, sir.
THANK YOU SO MUCH 😀😀
Helped alot
Thanks a lot this really helped I had tried different methods I kept getting error messages till I tried yours
it works thank you
Thank you it worked for me :)
Thank You so much
Thank You so much Bro
thanks it really solved my problem
keep up the good work!
Hi, Thank you so much for video, 😍
thanks a ton!
Thanks, I really needed this. Can you do the one of sending html templates using python, I have been battling with this
This Email part which you thought was really helpful which is a great part of my LIBRARY MANAGEMENT SYstem which sends Mail to the students who borrows book sfrom the library
did u do it??
Awesome bro,
amazing!
It's working! Thank you!
IT DOESN'T
Thank you :)
Thank you so much dude! This worked really well!
Bro calls land ho raha hai ?
@@akashdey7788 Huh?
@@andeheri he is asking if the calls are landing
thanks a lot sir
Thanks !!!!
very useful it has works perfectly for me thanks
Bro calls land ho raha hai ??
Man Thank you so much For This
yo bro mine didnt work
SUBSCRIBED MY MAN HOLY SHIT!!! IT WORKED!!!
East and west, respected Tomi is best
Was only having problems with the url, spen over an hour😅. I'm subscribing🤗
Amazing video,the guy explain very well and the code run,i love this video
Its working😘😘😘
Thanks for the video but i had an error like that:
smtplib.SMTPAuthenticationError: (534, b'5.7.9 Application-specific password required.
Do we need RDP also ?? To inboxin ?
How about reading the emails? Can you please make a video about that too
This is helpful. In the file you created to store the password did you enter any special code or simply just pasted the password in there and saved it?
Just declared a variable called password and assigned it the string value of the actual password.
email_password = 'myPassword123'
Hey brother, can you help me out with IP rotation.
I want to send mails with rotating IP after each sent mail
Is this secure with using SSL?
Video on ews read mail pls
how do you attach files on email?
King👑
how to change the email sender mail from my gmail to another mail id ?
How to attached any attachments
it didn't work. i keep getting recipent address is invalid. i've changed the recipents address couple of times still doesn't send
Please tell me, is it currently possible to log in to your account using an application password? For some reason, I do not accept this password when logging in.
Nice video Sir please I need the source code please 🙏
can you share the code
import EmailMessage shows me the error "No module named 'EmailMessage', did someone encounter this problem as well?
i did
I am using yahoo email ID as sender email where I am getting an error msg. as ---AttributeError: 'function' object has no attribute 'wrap_socket' Please help
If this works I'll sub
I'm getting this error - SMTPServerDisconnected("Connection unexpectedly closed")
Does anyone know if this is still working as of Feb 2023? Has gmail somehow hard blocked access to third party applications requesting authentication to they’re SMTP servers? I keep getting a ssl.SSLError which the error code reflects “SSL: WRONG VERSION_NUMBER”
you might need to update your openssl
What do I pip install for app2?
You don't, app2 is a python file he created himself and it's just a place for him to safely store his app password. You don't need it, you can just put the password into the variable.
Which IDE do you use here?
Ended up using PYCharm. Code works perfectly!
I have tried everything. I am still getting a 501 error. SMTPAuthenticationError(code, resp)
idk if you still need help but the password is the pass that he made at 1:57 . you dont put your actual email password. hope this helps :)
@@jhonathanherrera165 thanks man i love you
Don't name your file email.py or else you will get errors when you try to run it.
You saved my life.
Hey I am getting an error while running this code. it says certificate verify failed.
idk if you still need help but the password is the pass that he made at 1:57 . you dont put your actual email password. hope this helps :)
Hi!
It a outstanding video, new sub. The problem it cannot send Emails to others Gmail accounts.
Could you make a video explain how make it, please?
If you are not getting any error. You should check your spam.
what is the number 465?
pretty sure its a local host number, but not too completely sure
Hii I got a error that there is no module named app2
app2 is just a file that he made with his password to hide from us. You need to put in the password that you made like he did at 1:57
hi Tomi i cant find app password, im having dificulties
same problem, have you found the solution?
Getting Timeout Error
app passwords no longer exist in the google account manager
have you found the solution?
@@mufidakhbar5344yes the option is removed however there was a link i found somewhere online that took you to app passwords
@@mufidakhbar5344yea
smtplib is dead...
Not anymore since this is a new way to use it since the Gmail update
Hindi wale like kro
Hey hope you are doing alright just I wanna say that
GOD loved the world so much he sent his only begotten
son Jesus to die a brutal death for us so that we can have eternal life and we can all accept this amazing gift this by simply trusting in Jesus, confessing that GOD raised him from the dead, turning away from your sins and forming a relationship with GOD.
Great work Tomi, I really love what ayou doing bro, can you send email to any email address or just Gmail.
Any email address
@@CodeWithTomi how do we use other email address(e.g yahoo, etc)
Not sure what is wrong with my app. I have gone over the code several times and still get this error:
socket.gaierror: [Errno 11001] getaddrinfo failed
Eventually had to use "smtp.send_message(em)" instead of smtp.sendmail(email_sender, email_receiver, em.as_string())
Hello Tomi, I'm getting following errors:
```Traceback (most recent call last):
File "/Users/aya/Documents/Projects/my-internal-proj-app/python/PWH Python/send_email/send_email.py", line 25, in
with smtplib.SMTP_SSL('smtp.gmail.com',465,context=context) as smtp:
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/smtplib.py", line 1050, in __init__
SMTP.__init__(self, host, port, local_hostname, timeout,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/smtplib.py", line 255, in __init__
(code, msg) = self.connect(host, port)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/smtplib.py", line 341, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/smtplib.py", line 1057, in _get_socket
new_socket = self.context.wrap_socket(new_socket,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1071, in _create
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)```
Appreciate someone's help here...