nodemon
서버 코드를 변경할 때마다 서버를 재시작하도록 해주는 모듈
npm install -g nodemon
PUG(Jade)
npm install jade
http://jade-lang.com
node.js를 통해 메일 보내기
nodemailer 모듈
gmail(naver..) 서버를 이용해서 메일을 보냄
npm i nodemailer
nodemailer 설정
메일을 보내줄 객체 생성
nodemailer.createTransport({
service:'서비스명(gmail,naver,..)',
auth:{
user:'계정',
pass:'비밀번호'
},
host:'smtp.mail.com',
port:'465'
})
메일에 대한 정보(설정)를 담은 객체 생성
const 객체명 = {
from:'이름<메일주소>',
to:'이름<메일주소>',
subject:'제목',
text:'내용'
}
네이버 메일 사용하는 방법
https://velog.io/@jiwon/-Nodemailer%EB%A1%9C-%EC%9D%B8%EC%A6%9D-%EA%B4%80%EB%A0%A8-%EC%9D%B4%EB%A9%94%EC%9D%BC-%EB%B3%B4%EB%82%B4%EA%B8%B0-d4k4pqoot4
'node.js' 카테고리의 다른 글
[node.js] 쿠키, 세션 (0) | 2022.02.21 |
---|---|
[node.js] express 모듈, Router, EJS 모듈 (0) | 2022.02.21 |
[node.js] fs 모듈, http 모듈, express 모듈 (0) | 2022.02.21 |