Skip to content

Commit 9780e0c

Browse files
authored
Merge pull request mendix#9154 from mahendra-mahajan-mendix/patch-42
Update email-connector.md
2 parents 053c08a + 5353acf commit 9780e0c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

content/en/docs/appstore/use-content/platform-supported-content/modules/email-connector.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ Configuring local clients, such as [Papercut](https://github.com/ChangemakerStud
352352

353353
### Adding Attachments
354354

355+
#### Normal Attachment
356+
355357
To add attachments to the email message, do the following:
356358

357359
1. Create an **Attachment** entity. The **Attachment** entity extends the **FileDocument** entity by making it usable in all the places where the **FileDocument** entity is required.
@@ -360,6 +362,20 @@ To add attachments to the email message, do the following:
360362

361363
2. Set the **Attachment_EmailMessage** association.
362364

365+
#### Inline Attachment
366+
367+
To add inline attachments to an email message, you can use the Rich text editor to insert an image (or images) into the email body. You can also insert inline attachments by using a microflow. To use a microflow, follow these steps:
368+
369+
1. Create an EmailMessage with the *Content* property set as seen below:
370+
371+
```
372+
'before inline image<br><img src="cid:mxcid:test.png" width="530" height="110"><br>after inline image'
373+
```
374+
375+
2. Specify the image's tag source using the **cid:mxcid** prefix before the source file to have the image added as inline image.
376+
3. Create the attachment with the Position attribute set to **ENUM_AttachmentPosition.Inline**.
377+
4. Associate the attachment with EmailMessage. You can then send the email using the **SUB_SendEmail** microflow.
378+
363379
### Page Styling
364380
365381
If the **Email connector** page styling is affected as you select and view email messages, it likely due to errors in the email message CSS. To resolve the errors, turn on **Sanitize email to prevent XSS attacks** in [Account Settings](#other-account-settings).

0 commit comments

Comments
 (0)