node.js에서 모든 smtp 서버로 이메일, html 및 첨부 파일 (파일, 스트림 및 문자열)을 보냅니다.
https://github.com/eleith/emailjs
import { SMTPClient } from 'emailjs'; const client = new SMTPClient({ user: 'user', password: 'password', host: 'smtp.your-email.com', ssl: true, }); // send the message and get a callback with an error or details of the message that was sent client.send( { text: 'i hope this works', from: 'you <username@your-email.com>', to: 'someone <someone@your-email.com>, another <another@your-email.com>', cc: 'else <else@your-email.com>', subject: 'testing emailjs', }, (err, message) => { console.log(err || message); } );
등록된 댓글이 없습니다.