![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.
nodejs-nodemailer-outlook
Advanced tools
Simple integration between node js and outlook.office365 emailing servers this project depends on Nodemailer library overriding its variables with outlook.office365
defaults.
Install module using following command :
npm install nodejs-nodemailer-outlook
In your file.js run the following
var nodeoutlook = require('nodejs-nodemailer-outlook')
nodeoutlook.sendEmail({
auth: {
user: "johnexample@organization.com",
pass: "johnpassword"
}, from: 'info@myorganization.com',
to: 'jackexample@organization.com',
subject: 'Hey you, awesome!',
html: '<b>This is bold text</b>',
text: 'This is text version!',
attachments: [
{
filename: 'text1.txt',
content: 'hello world!'
},
{ // binary buffer as an attachment
filename: 'text2.txt',
content: new Buffer('hello world!','utf-8')
},
{ // file on disk as an attachment
filename: 'text3.txt',
path: '/path/to/file.txt' // stream this file
},
{ // filename and content type is derived from path
path: '/path/to/file.txt'
},
{ // stream as an attachment
filename: 'text4.txt',
content: fs.createReadStream('file.txt')
},
{ // define custom content type for the attachment
filename: 'text.bin',
content: 'hello world!',
contentType: 'text/plain'
},
{ // use URL as an attachment
filename: 'license.txt',
path: 'https://raw.github.com/nodemailer/nodemailer/master/LICENSE'
},
{ // encoded string as an attachment
filename: 'text1.txt',
content: 'aGVsbG8gd29ybGQh',
encoding: 'base64'
},
{ // data uri as an attachment
path: 'data:text/plain;base64,aGVsbG8gd29ybGQ='
},
{
// use pregenerated MIME node
raw: 'Content-Type: text/plain\r\n' +
'Content-Disposition: attachment;\r\n' +
'\r\n' +
'Hello world!'
}
]
});
Options :
auth
(Required): JSON object contains two keys user
and pass
these are the authentication of the sender account on email server ex: {"user":"exampl@mail.com","pass":"123456"}
host
(Required) : Server host url, Default : smtp.office365.com
port
(Required) : Server port, Default : 587
secure
(Required) : false for TLS - as a boolean not string
to
(Required if no cc
or bcc
are provided): Comma separated emails represent the target recipients.
cc
(Required if no to
or bcc
are provided): Comma separated emails represent the target carbon copy (CC) recipients.
bcc
(Required if no to
or cc
are provided): Comma separated emails represent the target blind carbon copy (BCC) recipients.
subject
(Optional): Email subject.
text
(Optional): Email text body version.
html
(Optional): Email html body version.
attachments
(Optional): JSON array of attachments.
Current version : 1.0.6
This project is opensource.
FAQs
Simple integration between nodeJS and outlook.office365
The npm package nodejs-nodemailer-outlook receives a total of 0 weekly downloads. As such, nodejs-nodemailer-outlook popularity was classified as not popular.
We found that nodejs-nodemailer-outlook 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.