No video

Sending Emails With Python Including Attachments (New Method for GMail - 2022)

  Рет қаралды 32,823

The Intrigued Engineer

The Intrigued Engineer

Жыл бұрын

Coding to send emails with Python scripts. this video shows how to send simple text emails and also how to include attachments such as CSVs or any other type of file.
Link to code on GitHub:
github.com/The...

Пікірлер: 63
@kristijonasj629
@kristijonasj629 Жыл бұрын
Fantastic turorial. For anyone not finding the App Passwords, just use the search bar to find it
@urinater
@urinater 4 ай бұрын
Thank you
@collinb5524
@collinb5524 Жыл бұрын
I spent 3 days trying to findna video that worked, this worked for me. Thanks so much
@davidissak-zade3662
@davidissak-zade3662 Жыл бұрын
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.
@anjammashop5174
@anjammashop5174 Жыл бұрын
Hatsoff to your explanation. Explained in just a simple way
@CrawdadSoftware
@CrawdadSoftware 9 ай бұрын
Some day you will be big in IT dude, nice video.
@MuhammadUsman-jo6rg
@MuhammadUsman-jo6rg Жыл бұрын
Thanks alot for this video very helpful doing a chat bot for university project and wanted to send user their chat transcript
@Intrigued_Engineer
@Intrigued_Engineer Жыл бұрын
Awesome! glad it helped you out!
@carbonwolf6995
@carbonwolf6995 Жыл бұрын
Hey thanks for the video, currently doing a udemy course that hasn't had an update of how the gmail works.
@ihonomic
@ihonomic Жыл бұрын
Thank you. This was super helpful
@Intrigued_Engineer
@Intrigued_Engineer Жыл бұрын
Glad it was helpful! nice of you to say! :-)
@user-ns3ko3fc4r
@user-ns3ko3fc4r 10 ай бұрын
Why does the email come but without the content and message?
@jefersonberwanger6617
@jefersonberwanger6617 Жыл бұрын
The only video that helped me, thank you. Brasil!!!
@MrRAC420
@MrRAC420 Жыл бұрын
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
@colombarillo9123
@colombarillo9123 Жыл бұрын
Thanks a lot for this video. It warked perfectly for me
@Village_Crystal_Stone
@Village_Crystal_Stone Жыл бұрын
Thanks 🙏 ur a life Saver Thanks once Again ❣️
@Intrigued_Engineer
@Intrigued_Engineer Жыл бұрын
You're welcome! :-)
@djawadjustme2328
@djawadjustme2328 Жыл бұрын
@@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
@user-bo8yk2eq6e
@user-bo8yk2eq6e Жыл бұрын
This is Just Amazing brother... Thank you !!!
@ViktorKerman
@ViktorKerman 9 ай бұрын
thank you man you helped me very much!
@yukunli5396
@yukunli5396 6 ай бұрын
Best video! Thank you.
@floridajet138
@floridajet138 Жыл бұрын
How to add multiple attachments to the email
@fluttervideo6659
@fluttervideo6659 Жыл бұрын
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 ?
@andrewthut2467
@andrewthut2467 Жыл бұрын
Great video. Do you have any suggestions on how to modify the code for multiple attachments?
@Cakiso
@Cakiso 8 ай бұрын
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.
@belhouenewassim
@belhouenewassim Ай бұрын
Can i use this code to draft emails using AI ?
@Houssembelaj
@Houssembelaj Жыл бұрын
STARTTLS extension not supported by server. Solution Please
@harshsawant4275
@harshsawant4275 Жыл бұрын
Very helpful video must try ❤
@Dreaming-11
@Dreaming-11 Жыл бұрын
Thank you, that was very helpful How can I change the attachment filename?
@naturallydope247
@naturallydope247 Жыл бұрын
How do I get this to bulk send with multiple recipient emails?
@isaiahchristianersolada8387
@isaiahchristianersolada8387 10 ай бұрын
why I cant send emails to another Gmail account?
@PeaceWalkerify
@PeaceWalkerify Жыл бұрын
Can you please make a video on how to read or access email using a python script
@user-yo2zl2mx1o
@user-yo2zl2mx1o Жыл бұрын
why my email goes to junk email (spam mail)
@yurton4
@yurton4 Жыл бұрын
Thanks from Ukraine!
@naturallydope247
@naturallydope247 Жыл бұрын
How do you reference your password externally?
@zrapplegt6454
@zrapplegt6454 Жыл бұрын
I'm a little late but you can try using the, read() function.
@testingtoy5732
@testingtoy5732 Жыл бұрын
How to add sender name bro can you help me out...
@SP-db6sh
@SP-db6sh Жыл бұрын
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.
@mehulgadodia2839
@mehulgadodia2839 Жыл бұрын
this worked bro thanks
@akashdey7788
@akashdey7788 Жыл бұрын
Do we have to use RDP for this ?
@user-jc1rp1zj1b
@user-jc1rp1zj1b 5 ай бұрын
thank you so much bro
@thatdude9965
@thatdude9965 11 ай бұрын
How do I send a .png?
@emanuelbarreira2007
@emanuelbarreira2007 Жыл бұрын
can I do this with an alias?
@wolacc
@wolacc Жыл бұрын
Thank you so much
@codermomo1792
@codermomo1792 4 ай бұрын
perfect
@ojaspatil2094
@ojaspatil2094 Жыл бұрын
thank you!
@andreviniciusbezerradasilv9335
@andreviniciusbezerradasilv9335 Жыл бұрын
how can i send emails with signature using python ?
@andreviniciusbezerradasilv9335
@andreviniciusbezerradasilv9335 Жыл бұрын
anexos 11:18
@zingthe64savage18
@zingthe64savage18 Жыл бұрын
everything worked but it didnt add a subject to the email
@MamaMia84oo7
@MamaMia84oo7 Жыл бұрын
It still works?
@reflexgaming400
@reflexgaming400 Жыл бұрын
The coding is not working
@MamaMia84oo7
@MamaMia84oo7 Жыл бұрын
Didn’t they remove “app passwords” from Google recently?
@Steve18795
@Steve18795 Жыл бұрын
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.
@MamaMia84oo7
@MamaMia84oo7 Жыл бұрын
@@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.
@mehulgadodia2839
@mehulgadodia2839 Жыл бұрын
i an going to use this in my Ai , hope it works
@matiasjuarez4018
@matiasjuarez4018 Жыл бұрын
Hello does this still work?
@matiasjuarez4018
@matiasjuarez4018 Жыл бұрын
Also how do I get the password from the start
@user-px4sf6px8v
@user-px4sf6px8v 5 ай бұрын
bro you are messaih
@vibrantliving8753
@vibrantliving8753 Жыл бұрын
i guess this was a test to see how fast you could type stuff without explaining it. you passed btw
@zstar8397
@zstar8397 7 ай бұрын
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.
@teck_check7309
@teck_check7309 10 ай бұрын
im getting only error please give me contact details
@HishmathDeen
@HishmathDeen Жыл бұрын
How to add multiple attachments to the email
@mehulgadodia2839
@mehulgadodia2839 Жыл бұрын
i an going to use this in my Ai , hope it works
AMT2 - Extracting Emails from your Gmail Inbox using python
16:02
DigitalSreeni
Рет қаралды 33 М.
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 55 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 127 МЛН
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 38 МЛН
How to Send Emails with Python [New Method 2023]
11:16
The PyCoach
Рет қаралды 185 М.
Note-taking Apps for Command-line People
34:49
Mischa van den Burg
Рет қаралды 36 М.
Sending EMAILS with PYTHON: 5 minute tutorial
4:38
Just Another Coder
Рет қаралды 20 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 294 М.
Sending Email using Python in 5 statements
9:53
Telusko
Рет қаралды 230 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 351 М.
Stow has forever changed the way I manage my dotfiles
8:09
Dreams of Autonomy
Рет қаралды 231 М.
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 55 МЛН