댓글 검색 목록

[Nodejs] 사용자 정의 이메일 템플릿을 작성하고 미리보고 보냅니다.

페이지 정보

작성자 운영자 작성일 20-03-01 21:32 조회 879 댓글 0

Node.js 용 사용자 정의 이메일 템플리트를 작성하고 미리보고 전송하십시오. 

고도로 구성 가능하며 자동 인라인 CSS, 스타일 시트, 임베드 된 이미지 및 글꼴 등을 지원합니다!


https://github.com/forwardemail/email-templates 

https://email-templates.js.org/


const Email = require('email-templates');

const email = new Email({
  message: {
    from: 'niftylettuce@gmail.com'
  },
  // uncomment below to send emails in development/test env:
  // send: true
  transport: {
    jsonTransport: true
  }
});

email
  .send({
    template: 'mars',
    message: {
      to: 'elon@spacex.com'
    },
    locals: {
      name: 'Elon'
    }
  })
  .then(console.log)
  .catch(console.error);






댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.