2018년 10월 20일 토요일

nodejs 이메일 보내기

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');
})

flutter 기본 개념 1

  Scaffold  - 화면 뼈대 역할  - 기본적으로 AppBar body floatingActionButton 같은걸 배치해줌  return Scaffold (       appBar : AppBar ( title : const Text ...