Skip to main content

Hi,

 

I am looking to pull embedded image from an Outlook email and then sending it to a Slack or MS Teams channel/chat. I have previously made same types of zaps using Gmail and Slack. In case of Gmail, the embedded image is considered an attachment and had no issue sending it to a Slack channel.

 

However, for Outlook the embedded image is not considered an attachment. Also Outlook doesn’t have any option to pull attachments but they have a option named “Files”. When I look at “Files”, it seems that the image is not considered a file. So, I am looking to know whether there is a way to create same types of zaps using Outlook. The screenshots from Gmail and Outlook are attached.

 

Thanks

Nilanjan xxx

 

 

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting. 

Hi @par8oproductteam 

If the image is embedded and not attached then the email content is likely HTML which means you should see something lik <img src=””> inside of the content



Try using a Formatter Step > Text > Extract URL to pull out the img source

 


Hi @par8oproductteam 

As an alternative you may want to try email parsing if there are multiple images embedded in the email.

Check out the Mailparser app: https://zapier.com/apps/mailparser/integrations


Hi @GetUWired Thanks for your response. I have tried the Formatter approach. Unfortunately there are URLs before the image tag, so the part is that is being extracted is not related the the image. Also the image tag not an URL. So I will have to find an alternative approach.


Hi @Troy Tessalone Thanks for suggesting Mailparser. I would check whether that can pull the image


@par8oproductteam 

Parser is a good bet or you could look into regex to extract the src of all image tags. 


something like the below should work to extract everything that matches the img tag in html. PATTERN: (?<=img src=").*(?=")