UserManagement
UserManagement copied to clipboard
Documentation – Change Template for E-Mail
How do I configure the E-Mail-Template for the Registration activation in /Configuration/Views.yaml
I tried
-
requestFilter: 'mainRequest.isPackage("Neos.Neos") && isPackage("Sandstorm.UserManagement") && isController("Registration") && isAction("register")'
options:
templatePathAndFilename: 'resource://xxx.yyy/Private/EmailTemplates/ActivationToken.html'
partialRootPaths: ['resource://xxx.yyy/Private/Partials']
layoutRootPaths: ['resource://xxx.yyy/Private/Layouts']
But this changes the output on the website and not the activation mail.
Hey, overriding the E-Mail Templates is documented in the Sandstorm/TemplateMailer Documentation.
Basically you need to copy the template files from Sandstorm.UserManagement/Resources/Private/EmailTemplates to Your.Package/Resources/Private/EmailTemplates and add this little Snippet to your settings.yaml:
Sandstorm:
TemplateMailer:
templatePackages:
20: 'Your.Package'