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.

    Thanks!!


  • 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.


 

| |