[JavaScript] 한 시간만에 끝내는 Node.js 입문 강의 듣기
급하게 Node.js를 대충이라도 익혀야 할 일이 생겨서 해당 강의를 듣게 되었다. 1. Nodemailer & Mail Trap 사용해서 메일 보내는 프로그램 만들기 const nodemailer = require('nodemailer'); const email = { host: "", port: , auth: { user: "", pass: "" } }; // 계정 정보 const send = async (option) =>{ nodemailer.createTransport(email).sendMail(option, (error, info) =>{ if(error) { console.log(error); }else{ console.log(info); return info.response; } }); ..
2020.11.23