andris9 on v6.7.6
andris9 on smtp-verify-noauth
andris9 on master
Reject unauthenticated verify c… (compare)
andris9 on smtp-verify-noauth
Reject verify() if the server s… v6.7.6 (compare)
Can't seem to get OAuth2 working with a service account via gmail. Config looks like this:
let transport = mailer.createTransport({
service: 'Gmail',
auth: {
type: 'OAuth2',
user: 'user@cutomgmailsite.com',
serviceClient: '106...',
privateKey: '-----BEGIN PRIVATE KEY-----...',
//accessToken: '', where would I get this?
//expires: 1, where would I get this?
}
});
Hi everyone, I'm running Nodemailer 2.3.2
and I can't seem to get the filename for my attachment working. No matter what I give it, it always defaults to attachment-1.xls
Here is my attachments section ...
attachments: [
{
// _filename is 'TN_TestName_2017-04-05.xls'
filename: _filename,
content: fileBuffer,
contentType: 'application/vnd.ms-excel'
}
],
EDIT: I removed the content type and that fixed the problem
dsn
, I'm not sure how it worked, you probably should look into the SMTP client code in simplesmtp module to check it out.
contentType
resolved the issue when using a variable for filename
let transporter = nodemailer.createTransport({
host: process.env.MAIL_DOMAIN,
port: 465,
secure:true,
debug:true,
logger:true,
tls:{
rejectUnauthorized: false
},
auth: {
user: process.env.MAIL_USERNAME,
pass: process.env.MAIL_PASSWORD
}
});
master
have re-initialised the repository.. @andris9