Python Forum
Add png to the body of the email, not the attachment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add png to the body of the email, not the attachment
#6
(Dec-13-2018, 11:21 PM)wavic Wrote: This is clear from your first post.

I didn't know how it works but I did some quick research. It's simple enough.
You add an HTML image tag to the message which contains the base64 data.

It is something like this: <img src="data:image/jpg;base64,base64 encoded data here" />

You can read about how to embed an image here for example. Look at "Inline Embedding (Base64 Encoding)" section.
THX. I will try your solution. Will write later...
PS
I dont see where i can put local path for file?
Reply


Messages In This Thread
RE: Add png to the body of the email, not the attachment - by Ivan87 - Dec-14-2018, 07:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to download TLS Report attachment blason16 6 624 Feb-26-2024, 07:36 AM
Last Post: Pedroski55
  Extract PDF Attachment from Gmail jstaffon 0 615 Sep-10-2023, 01:55 PM
Last Post: jstaffon
  I get attachment paperclip on email without any attachments monika_v 5 2,081 Mar-19-2022, 10:20 PM
Last Post: cosmarchy
  Trying to determine attachment file type before saving off.. cubangt 1 2,223 Feb-23-2022, 07:45 PM
Last Post: cubangt
  Help Needed | Read Outlook email Recursively & download attachment Vinci141 1 4,145 Jan-07-2022, 07:38 PM
Last Post: cubangt
  Clicking Every Page and Attachment on Website shoulddt 1 1,787 Jul-09-2021, 01:08 PM
Last Post: snippsat
  ATT00001 instead of PDF attachment to an email dominiklucas 0 3,794 Jul-25-2020, 04:05 PM
Last Post: dominiklucas
  Sending an email with attachment without using SMTP? PythonNPC 5 3,269 May-05-2020, 07:58 AM
Last Post: PythonNPC
  How to Save Full Email Body to CLOB in Oracle w/Carriage Returns? bmccollum 1 2,321 Mar-12-2020, 10:25 PM
Last Post: Larz60+
  download base64 email attachment cferguson 3 4,801 Feb-25-2020, 06:50 PM
Last Post: cferguson

Forum Jump:

User Panel Messages

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