Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Example for Template #5208

Merged
merged 3 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Documentation/ApiOverview/Mail/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,34 @@ If you want to provide custom templates or layouts, set this in your
= 'EXT:my_site_extension/Resources/Private/Layouts';

.. _mail-configuration-transport:
linawolf marked this conversation as resolved.
Show resolved Hide resolved
Here is a minimal example for a Fluid-based email template:

**Directory Structure:**

```
EXT:my_site_extension/
├── Resources/
│ └── Private/
│ ├── Templates/
│ │ └── Email/
│ │ └── MyCustomEmail.html
```

**`MyCustomEmail.html`:**

.. code-block:: html
:caption: EXT:my_site_extension/Resources/Private/Templates/Email/MyCustomEmail.html

<f:layout name="SystemEmail" />

<f:section name="Subject">
My Custom Subject
</f:section>

<f:section name="Main">
Hello, this is a custom email template!
</f:section>


transport
---------
Expand Down