Skip to content

Conversation

@didoda
Copy link
Member

@didoda didoda commented Oct 29, 2025

This provides some tools to have a "Mail preview" section on objects, with a send mail feature.

Usage example follows.
Adjust your object configuration view, like:

{
  "core": [
    "title",
    "body"
  ],
  "mail_preview": {
    "_element": "Form/mail_preview"
  }
}

Set your mail template in body, i.e.:

<p>Gentile {{ user.name }} {{ user.surname }},</p>
<p>benvenuto sulla piattaforma</p>

When you save, in "Mail preview" you see a form to try to send your mail.

Note: your API should provide a /placeholders/send, as the form tries a POST against it, to send the email.

image

@didoda didoda added this to the 6.0.0 milestone Oct 29, 2025
@didoda didoda added the feature New feature or request label Oct 29, 2025
@didoda didoda merged commit 90c57ea into bedita:6.x Oct 29, 2025
9 of 10 checks passed
@didoda didoda deleted the feat/mail-preview-and-send branch October 29, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant