Submit your innovative use case or inspiring success story to the 2023 Dataiku Frontrunner Awards! LET'S GO

Email with inline attachment using API

chkmcnuggets
Level 1
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

 

0 Kudos
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 1
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