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

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

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

  • @kristijonasj629
    @kristijonasj629 Год назад +4

    Fantastic turorial. For anyone not finding the App Passwords, just use the search bar to find it

    • @urinater
      @urinater 8 месяцев назад

      Thank you

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

    I spent 3 days trying to findna video that worked, this worked for me. Thanks so much

  • @davidissak-zade3662
    @davidissak-zade3662 Год назад +1

    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

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

    why I cant send emails to another Gmail account?

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

    Why does the email come but without the content and message?

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

    Some day you will be big in IT dude, nice video.

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

    Hey thanks for the video, currently doing a udemy course that hasn't had an update of how the gmail works.

  • @MuhammadUsman-jo6rg
    @MuhammadUsman-jo6rg 2 года назад +1

    Thanks alot for this video very helpful doing a chat bot for university project and wanted to send user their chat transcript

  • @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 ?

  • @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

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

    STARTTLS extension not supported by server.
    Solution Please

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

    How do I get this to bulk send with multiple recipient emails?

  • @belhouenewassim
    @belhouenewassim 5 месяцев назад

    Can i use this code to draft emails using AI ?

  • @Dreaming-11
    @Dreaming-11 Год назад

    Thank you, that was very helpful
    How can I change the attachment filename?

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

    How to add multiple attachments to the email

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

    Great video. Do you have any suggestions on how to modify the code for multiple attachments?

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

      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.

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

    Thank you. This was super helpful

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

    Can you please make a video on how to read or access email using a python script

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

    The only video that helped me, thank you.
    Brasil!!!

  • @Hulan-m9r
    @Hulan-m9r Год назад

    why my email goes to junk email (spam mail)

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

    How to add sender name bro can you help me out...

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

    How do you reference your password externally?

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

      I'm a little late but you can try using the, read() function.

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

    Do we have to use RDP for this ?

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

    can I do this with an alias?

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

    How do I send a .png?

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

    Thanks 🙏 ur a life Saver
    Thanks once Again ❣️

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

      You're welcome! :-)

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

      @@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

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

    Thanks a lot for this video. It warked perfectly for me

  • @andreviniciusbezerradasilv9335

    how can i send emails with signature using python ?

  • @FirstLast-i3v
    @FirstLast-i3v Год назад

    This is Just Amazing brother... Thank you !!!

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

    Very helpful video must try ❤

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

    everything worked but it didnt add a subject to the email

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

    Didn’t they remove “app passwords” from Google recently?

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

      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.

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

    Best video! Thank you.

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

    The coding is not working

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

    Thanks from Ukraine!

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

    this worked bro thanks

  • @SP-db6sh
    @SP-db6sh 2 года назад

    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.

  • @siddharthdey-e9q
    @siddharthdey-e9q 10 месяцев назад

    thank you so much bro

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

    Thank you so much

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

    i an going to use this in my Ai , hope it works

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

    thank you!

  • @codermomo1792
    @codermomo1792 9 месяцев назад

    perfect

  • @Vishnutejas-q3y
    @Vishnutejas-q3y 9 месяцев назад

    bro you are messaih

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

    i guess this was a test to see how fast you could type stuff without explaining it. you passed btw

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

    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 Год назад

    im getting only error please give me contact details

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

    Hello does this still work?

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

    How to add multiple attachments to the email

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

    thank you man you helped me very much!

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

    i an going to use this in my Ai , hope it works