UserManagement icon indicating copy to clipboard operation
UserManagement copied to clipboard

Documentation – Change Template for E-Mail

Open signalwerk opened this issue 6 years ago • 1 comments

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.

signalwerk avatar Mar 07 '19 14:03 signalwerk

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'

ulbrich-media avatar Mar 20 '19 16:03 ulbrich-media