반면 형식이 확고하다면 테스트 서비스는 불필요합니다. 헤더, 볼드/이탤릭체, 가로줄, 과하지
않은 이미지 링크만 사용한다면
HTML
이메일이 깨질 염려는 없습니다.
11.6.
노드메일러
먼저 노드메일러 패키지를 설치해야 합니다. 노드메일러는
1
.
0
으로 버전업하며 크게 달라졌으
므로 이 책의 예제를 따라 하려면
0
.
7
.
1
버전을 설치해야 합니다.
npm install
--
save nodemailer
@
0
.
7
.
1
다음에는
nodemailer
패키지를 연결하고 노드메일러 인스턴스(노드메일러 용어로는 ‘트랜스
포트’
transport
라고 합니다)를 생성합니다.
var nodemailer
=
require
('
nodemailer
');
var mailTransport
=
nodemailer
.
createTransport
('
SMTP
',{
service
:
'
Gmail
',
auth
:
{
user
:
credentials
.
gmail
.
user
,
pass
:
credentials
.
gmail
.
password
,
}
});
9
장에서 만든 인증 모듈을 쓰고 있는 게 보일 겁니다. 따라서 여러분의
credentials
.
js
파일을
업데이트해야 합니다.
module
.
exports
=
{
cookieSecret
:
'
your cookie secret goes here
',
gmail ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.