Pass variable to html template in nodemailer

前端 未结 8 2175
礼貌的吻别
礼貌的吻别 2021-01-30 16:45

I want to send email with nodemailer using html template. In that template I need to inject some dynamically some variables and I really can\'t do that. My code:



        
8条回答
  •  鱼传尺愫
    2021-01-30 17:51

    There is one easy way to insert variable inside html in nodemailer.

        html:"

    Your message "+variable1+".Message continueous "+variable 2+"

    "

提交回复
热议问题