Python Forum
PYTHON - send email with attachment Error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PYTHON - send email with attachment Error
#2
never mind i found the solution basically this did the trick


filename = 'file.txt'
attachment = open("file path" + filename, "rb")

#Search and you will Find
# I am getting there
Reply


Messages In This Thread
RE: PYTHON - send email with attachment Error - by PYTHONDUDE - Feb-27-2018, 07:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to download TLS Report attachment blason16 6 594 Feb-26-2024, 07:36 AM
Last Post: Pedroski55
  Extract PDF Attachment from Gmail jstaffon 0 601 Sep-10-2023, 01:55 PM
Last Post: jstaffon
  Send Error when attaching files JamesAinsworth 1 614 Aug-07-2023, 11:10 PM
Last Post: deanhystad
  Send email with smtp without using Mimetext mgallotti 0 726 Feb-01-2023, 04:43 AM
Last Post: mgallotti
  email Library: properly send message as quoted-printable malonn 3 1,366 Nov-14-2022, 09:31 PM
Last Post: malonn
  I get attachment paperclip on email without any attachments monika_v 5 2,055 Mar-19-2022, 10:20 PM
Last Post: cosmarchy
  Unable to send email attachments cosmarchy 7 2,631 Mar-09-2022, 09:29 PM
Last Post: bowlofred
  Trying to determine attachment file type before saving off.. cubangt 1 2,199 Feb-23-2022, 07:45 PM
Last Post: cubangt
  Help Needed | Read Outlook email Recursively & download attachment Vinci141 1 4,129 Jan-07-2022, 07:38 PM
Last Post: cubangt
  How to make scraper send email notification just once themech25 0 1,407 Nov-08-2021, 01:51 PM
Last Post: themech25

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020