Commit 0158cc65 authored by 神楽坂玲奈's avatar 神楽坂玲奈

mail allow no auth

parent e8d160f3
......@@ -4,7 +4,7 @@ import config from '../config';
let tp = nodemailer.createTransport({
host: config.Mail.SMTP_HOST,
port: config.Mail.SMTP_PORT,
auth: {
auth: config.Mail.SMTP_PASSWORD && {
user: config.Mail.SMTP_USERNAME,
pass: config.Mail.SMTP_PASSWORD
},
......@@ -12,4 +12,4 @@ let tp = nodemailer.createTransport({
});
export default tp;
\ No newline at end of file
export default tp;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment