![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
outlook-nodemailer-transport
Advanced tools
Outlook API and Nodemailer v4+. The plugin uses send scope only
The custom transport plugin that allows to send email using Nodemailer via Outlook
With the help of the Outlook API it is possible to use the send scope and Nodemailer v4+. The plugin is very small, optimized and written in TypeScript
If you like to use this module please click the star button - it is very motivating.
Install outlook-nodemailer-transport using npm:
$ npm install outlook-nodemailer-transport --save
Nodemailer common fields are supported and replyTo
send the simple email by the access token
'use strict';
const nodemailer = require('nodemailer');
const OutlookTransport = require('outlook-nodemailer-transport');
let transporter = nodemailer.createTransport(new OutlookTransport({
userId: 'my-address@outlook.com',
auth: {
accessToken: 'ya29.Glv5BvE5y-access-token'
}
}));
transporter.sendMail({
from: 'email@outlook.com',
to: 'recipient@test.com',
replyTo: 'reply-to@example.com',
subject: 'Outlook Transport',
text: 'This is text content'
}).then((info) => {
console.log('SUCCESS');
}).catch((error) => {
console.log('Something is wrong');
});
send the simple email, if it's failed to refresh the access token
'use strict';
const nodemailer = require('nodemailer');
const OutlookTransport = require('outlook-nodemailer-transport');
let transporter = nodemailer.createTransport(new OutlookTransport({
userId: 'my-address@outlook.com',
auth: {
clientId: 'clien-id.apps.googleusercontent.com',
clientSecret: 'clint-secret',
refreshToken: '1/EAATBaMn-refresh-token',
accessToken: 'ya29.Glv5BvE5y-access-token'
}
}));
transporter.sendMail({
from: 'email@outlook.com',
to: 'recipient@test.com',
replyTo: 'reply-to@example.com',
subject: 'Outlook Transport',
text: 'This is text content'
}).then((info) => {
console.log('SUCCESS');
}).catch((error) => {
console.log('Something is wrong');
});
send an attachment and embed it to the content
'use strict';
const nodemailer = require('nodemailer');
const OutlookTransport = require('outlook-nodemailer-transport');
let transporter = nodemailer.createTransport(new OutlookTransport({
userId: 'my-address@outlook.com',
auth: {
accessToken: 'ya29.Glv5BvE5y-access-token'
}
}));
transporter.sendMail({
from: 'email@example.com',
to: 'recipient@test.com',
replyTo: 'reply-to@example.com',
subject: 'Outlook Transport',
html: '<!DOCTYPE html><html><body><img src="cid:attachment" alt="attachment"></body></html>',
attachments: [{
content: '/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAA...', // base64 content
cid: 'attachment',
contentType: 'image/jpeg',
filename: 'attachment.jpg',
encoding: 'base64'
}]
}).then((info) => {
console.log('SUCCESS');
}).catch((error) => {
console.log('Something is wrong');
});
FAQs
Outlook API and Nodemailer v4+. The plugin uses send scope only
We found that outlook-nodemailer-transport demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.