Best video out there explaining on how to automate email sendouts. I wish you explained more about the base64 encoding and the tls security layer. If somebody wants to understand these concepts in depth I advise using chatgpt along the way.
Copy this part: # Define the file to attach filename = "file.xlsx" # Open the file in python as a binary attachment= open(filename, 'rb') # r for read and b for binary # Encode as base 64 attachment_package = MIMEBase('application', 'octet-stream') attachment_package.set_payload((attachment).read()) encoders.encode_base64(attachment_package) attachment_package.add_header('Content-Disposition', "attachment; filename= " + filename) msg.attach(attachment_package) And repeat it for multiple files.
@@Intrigued_Engineer can i contact you ? when i try it this error appears Tying To Connect Server... partially initialized module 'smtplib' has no attribute 'SMTP' (most likely due to a circular import) Traceback (most recent call last): File "c:\Users\dell\Desktop\UsbSteal\email.py", line 2, in import smtplib File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\smtplib.py", line 47, in import email.utils ModuleNotFoundError: No module named 'email.utils'; 'email' is not a package
@@Steve18795 That wasn’t available for my account (for some reason) either. I just went with the API and got everything as I wanted it. Thanks for the reply though.
Thank you for posting this amazing content. Requesting for next content on Raspberry Pi camera, for sending alerts on detection of object (Intruder alert) or specific IOT signal, with celery task manager .Next remotely control of motor with raspberry Pi.
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.
Fantastic turorial. For anyone not finding the App Passwords, just use the search bar to find it
Thank you
I spent 3 days trying to findna video that worked, this worked for me. Thanks so much
Best video out there explaining on how to automate email sendouts. I wish you explained more about the base64 encoding and the tls security layer. If somebody wants to understand these concepts in depth I advise using chatgpt along the way.
Hatsoff to your explanation. Explained in just a simple way
Hey thanks for the video, currently doing a udemy course that hasn't had an update of how the gmail works.
Thanks alot for this video very helpful doing a chat bot for university project and wanted to send user their chat transcript
Awesome! glad it helped you out!
Some day you will be big in IT dude, nice video.
Thank you. This was super helpful
Glad it was helpful! nice of you to say! :-)
Great Help, Though I am not a coder, this has helped me a lot, just wanted to know how to configure email ids for CC
The only video that helped me, thank you.
Brasil!!!
Thanks a lot for this video. It warked perfectly for me
why I cant send emails to another Gmail account?
This is Just Amazing brother... Thank you !!!
Very helpful video must try ❤
Great video. Do you have any suggestions on how to modify the code for multiple attachments?
Copy this part:
# Define the file to attach
filename = "file.xlsx"
# Open the file in python as a binary
attachment= open(filename, 'rb') # r for read and b for binary
# Encode as base 64
attachment_package = MIMEBase('application', 'octet-stream')
attachment_package.set_payload((attachment).read())
encoders.encode_base64(attachment_package)
attachment_package.add_header('Content-Disposition', "attachment; filename= " + filename)
msg.attach(attachment_package)
And repeat it for multiple files.
Thanks 🙏 ur a life Saver
Thanks once Again ❣️
You're welcome! :-)
@@Intrigued_Engineer can i contact you ?
when i try it this error appears
Tying To Connect Server...
partially initialized module 'smtplib' has no attribute 'SMTP' (most likely due to a circular import)
Traceback (most recent call last):
File "c:\Users\dell\Desktop\UsbSteal\email.py", line 2, in
import smtplib
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\smtplib.py", line 47, in
import email.utils
ModuleNotFoundError: No module named 'email.utils'; 'email' is not a package
Thank you, that was very helpful
How can I change the attachment filename?
Best video! Thank you.
Why does the email come but without the content and message?
STARTTLS extension not supported by server.
Solution Please
How do I get this to bulk send with multiple recipient emails?
Can you please make a video on how to read or access email using a python script
How to add multiple attachments to the email
Can i use this code to draft emails using AI ?
when run program gave me this messag : 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) ...can you help me ?
Do we have to use RDP for this ?
can I do this with an alias?
How do you reference your password externally?
I'm a little late but you can try using the, read() function.
How do I send a .png?
How to add sender name bro can you help me out...
thank you so much bro
this worked bro thanks
why my email goes to junk email (spam mail)
Thank you so much
Thanks from Ukraine!
how can i send emails with signature using python ?
anexos 11:18
thank you!
Didn’t they remove “app passwords” from Google recently?
App passwords is now under two-step verification.
To get to app password,
first click on two-step verification then scroll down to the bottom.
@@Steve18795 That wasn’t available for my account (for some reason) either. I just went with the API and got everything as I wanted it. Thanks for the reply though.
Thank you for posting this amazing content. Requesting for next content on Raspberry Pi camera, for sending alerts on detection of object (Intruder alert) or specific IOT signal, with celery task manager .Next remotely control of motor with raspberry Pi.
The coding is not working
perfect
everything worked but it didnt add a subject to the email
It still works?
i an going to use this in my Ai , hope it works
bro you are messaih
i guess this was a test to see how fast you could type stuff without explaining it. you passed btw
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.
im getting only error please give me contact details
Hello does this still work?
Also how do I get the password from the start
thank you man you helped me very much!
How to add multiple attachments to the email
i an going to use this in my Ai , hope it works