EmailParser.ProcessImageReferences
----------------------------------

Processes image references in HTML.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [EmailParser](component_EmailParser.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "EmailParser.ProcessImageReferences"; HTMLText ) 

**MBS**( **"EmailParser.ProcessImageReferences";** /\* Processes image references in HTML. \*/  
**$HTMLText**) /\* The HTML text from the email containing image references with "cid:" in the address. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| HTMLText | The HTML text from the email containing image references with "cid:" in the address. |  |

### Result

Returns html or error.

### Description

Processes image references in HTML.  
All cid: links are found. : and / are replaced with dash.  
You can write all inline graphics files to a directory with html and rename the files the same way.  
Now you can point a WebViewer to the html file and load it.  
(see example database)  
### Example Databases

- [CURL/Email/Email Parser and Preview](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/Email%20Parser%20and%20Preview.shtml#2ScriptAnchor_)

### Blog Entries

- [Use Inline Graphics in Emails](https://www.mbsplugins.de/archive/2021-02-11/Use_Inline_Graphics_in_Emails/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 3th July 2016 , last changed 4th November 2021

  
[EmailParser.PlainText](EmailParserPlainText.md) - [EmailParser.ReceiveDate](EmailParserReceiveDate.md)

[HTML Version](EmailParserProcessImageReferences.shtml)