📜  将生成的 pdf 附加到 js 中的 smtpjs 邮件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:00.503000             🧑  作者: Mango

代码示例1
//attach a generated pdf to a smtpjs mail in js   



     Email.send({
     Host: "smtp.gmail.com",
     Username : "abc@gmail.com",
     Password : "abc",
     To : receiver,
     From : "abc@gmail.com",
     Subject : emailSubject,
     Body : emailBody,
     Attachments : [
     {
      name : list.pdf
      data : pdfBase64 

     }]
     }).then(
     )
     });