npm install nodemailer
서버
var mail = require('nodemailer');
var smtp = mail.createTransport({
service: 'Gmail',
auth:{
user:'ID',
pass:'PASS
}
})
컨트롤러
var mailoption={
from:'ID',
to:'ID',
subject:'제목',
text:'내용'
}
smtp.sendMail(mailoption,function(err,res){
if(err)console.log(err);
else console.log('send mail');
})
2018년 10월 20일 토요일
flutter 기본 개념 1
Scaffold - 화면 뼈대 역할 - 기본적으로 AppBar body floatingActionButton 같은걸 배치해줌 return Scaffold ( appBar : AppBar ( title : const Text ...
-
Scaffold - 화면 뼈대 역할 - 기본적으로 AppBar body floatingActionButton 같은걸 배치해줌 return Scaffold ( appBar : AppBar ( title : const Text ...
-
도커 상태 확인 현재 실행중인 프로세스 docker ps 실행 했던 프로세스 docker ps -a 설치된 이미지 목록 docker images 도커 이미지 관리 이미지 받아오기 docker pull image이름 이...
-
Introduction Dynamic Programming (DP) is a fundamental concept in computer science and algorithmic problem-solving. It's a technique tha...