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

Documentation – Change Template for E-Mail #38

Open
signalwerk opened this issue Mar 7, 2019 · 1 comment
Open

Documentation – Change Template for E-Mail #38

signalwerk opened this issue Mar 7, 2019 · 1 comment

Comments

@signalwerk
Copy link

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.

@ulbrich-media
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants