...
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
|
Mail command
Javadoc resource link |
---|
rangeHigherVersion | 5.4 |
---|
className | info.magnolia.module.mail.commands.MailCommand |
---|
renderType | asynchronous |
---|
|
is used to send all mails in Magnolia. The command can execute on events such as user actions, workflow steps and scheduled jobs. You can write message templates and test them manually in the
Mail tools app before automating the process for production use.
The command is registered at Configuration > /modules/mail/commands/default/sendMail
.
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Values |
---|
| | | | | | | | | | | info.magnolia.module.mail.commands.MailCommand |
|
...
The default transfer protocol (SMTP) settings are configured at Configuration > /modules/mail/config/smtp
. These setting display the Mail subapp.
...
- Access the relevant profile, typically
superuser
, in the Security app. Go to System users and add your email address in the superuser
profile. - Select either plain text or rich text mail type.
- Optionally, select an asset attachments from the DAM in the Assets chooser.
- Click Send Test Mail.
The content of the test mail is configured at Configuration > /modules/mail/config/simpleConfiguration
.
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| | | | | | | | | This is a simple mail. | | test@example.com | | This This is a test mail. |
|
Message templates
...
- Properties:
templateFile
: Mandatory. Relative path to the template script. type
: Mandatory. Scripting language used in the template.contentType
: Type of content for the message body. It is only necessary to include this property for HTML emails.from
: Email address that will appear in the From field of the message, unless defined elsewhere, for example in Form module.
subject
: Subject line of the email, unless defined elsewhere for example in the Form module.
- Nodes:
...
Template renderers are registered in Configuration > /modules/mail/config/factory/renderers
:
freemarker
: To render Freemarker email templates.magnolia
: To render Magnolia web pages in an email.simple
: To render simple text emails that do not require a specific scripting language to be parsed.
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| | | | | | | info.magnolia.module.mail.templates.impl.FreemarkerEmail | | infoinfo.magnolia.module.mail.templates.impl.MgnlPageEmail | | infoinfo.magnolia.module.mail.templates.impl.SimpleEmail | | infoinfo.magnolia.module.mail.MgnlMailFactory |
|
...
The mimeMultipart
property can be used to define the structure of a MgnlMultipartEmail
a
Javadoc resource link |
---|
rangeHigherVersion | 5.4 |
---|
className | info.magnolia.module.mail.templates.MgnlMultipartEmail |
---|
renderType | asynchronous |
---|
|
:
mixed
: Standard email attachment.related
: Attachment shown inline. This is the default when no mimeMultipart
property is speciied. MailAttachment
does not use Content-ID properties but uses attachment names (not file names).
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
Node name | Value |
---|
| | | | | | | mixed | | http://www.magnolia-cms.com/.imaging/amplify-miami-2014/imageForTeaserBinary/miami.png | | | | related | | http://www.magnolia-cms.com/.imaging/amplify-miami-2014/imageForTeaserBinary/miami.png |
|
...