Email with inline attachment using API

chkmcnuggets
Level 2
Email with inline attachment using API

Hi everybody, I would like to send emails with inline attachments (eg .png files) via code. I can send them as attachments using the code below, but I couldnt figure out a way to put them in the message body.

Does anyone know of a way to do so?

Thank you!

email attachment.PNG

 

2 Replies
CatalinaS
Dataiker

Hi @chkmcnuggets,

 

Can you please share addition details:

  • Where are you running this code?
  • What libraries are you using?
0 Kudos
chkmcnuggets
Level 2
Author

Hi @CatalinaS, I'm running the code as a Python recipe in a DSS project. I'm using the dataiku and pandas packages.

0 Kudos