Use Custom Template to send Email

  • Hi,

    I am using 'Nodemailer' in my plugin.
    I need to use Custom Email template file for Sending Notification Email.
    Can I use 'Custom Email Template' in my plugin.
    Or there is any dependency available in Node.js.
    Please provide me guideline.


  • GNU/Linux Admin

    No dependencies required, just have your plugin serve templates (add the template option into plugin.json), and in that template folder, have a folder called emails, and place your template in there.

    Also place a corresponding plaintext one with the suffix _plaintext.

Suggested Topics

| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.