기본 콘텐츠로 건너뛰기

라벨이 authentication인 게시물 표시

meteor 에서 E-mail 인증하기

MAIL_URL은 gmail을 쓸 경우 다음과 같이 설정하면 된다. smtp:// 사용자계정 %40gmail.com: 계정암호 @smtp.gmail.com:465/ 혹은 google apps 계정은 경우 smtp:// 사용자계정 %40 구글Apps도메인 : 계정암호 @smtp.gmail.com:465/ ---- 가입자 확인 메일 발송엔 몇가지 문제가 있는데 1. Text로 메일을 보낸다. 2. Formatted 형식을 사용할 수 없다. 이건 내가 생각해봐도 좀 아니다 싶다. server 쪽에서 startup 할때 기존 Accounts.emailTemplate과 Accounts.sendVerificationEmail 등등이 제대로 작동하도록 바꿔치기 해주자. :: email.coffee Meteor.startup ->   # set Mail configuration   Email = Package.email.Email;   _.extend Accounts.emailTemplates,     from: "Gearlounge <no-reply@gearlounge.com>"     verifyEmail:       subject: (user)->         "#{"#{user.profile.displayName}님, "if (user.profile and user.profile.displayName)?}가입을 환영합니다."       html: (user, url)->         Handlebars.templates['verifyEmail'](           user: user.profile &...