
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@mailchain/message-composer
Advanced tools
Warning
@mailchain/message-composerlibrary is in development and may not cover all cases yet. Use with caution.
RFC-5322 compliant MIME message composer for Node and for the browser. Just add the content you want and let the library take care of formatting it according to the specification.
const msg = createMessageComposer(messageComposerContext)
// .id('47bdaf40-c3da-49f7-bfc7-66337f35c6c1@mailchain.com') // Optional
.subject('Subject can contain UTF-8 chars including emojis 😉')
// .date(new Date('08/28/2022')) // Optional
.from({ name: 'Bob', address: 'bob@mailchain.com' })
.recipients('To', { name: 'Alice', address: 'alice@mailchain.com' })
.recipients('Cc', { name: 'Joe Doe', address: 'joe@mailchain.com' })
.recipients(
'Bcc',
{ name: 'Jane Doe', address: 'jane@mailchain.com' },
{ name: 'Bob', address: 'bob@mailchain.com' },
)
.message('plain', Buffer.from('Plaintext content. Can also contain UTF-8 and emojis 🤐.'))
.message('html', Buffer.from('This is ✨rich-text✨ HTML <b>content</b>.'))
.attachment({
cid: 'bfcd3a31-646b-4dcd-a1ea-06d37baf7d2e',
contentType: 'image/png',
filename: 'mailchain-logo.png',
content: readFileSync('mailchain-logo.png'),
});
const { forSender, forVisibleRecipients, forBlindedRecipients } = await msg.build();
For full usage examples view the developer docs.
Using npm:
$ npm install @mailchain/message-composer
Using yarn:
$ yarn add @mailchain/message-composer
FAQs
Mailchain MIME message composer. RFC-5322 compliant
The npm package @mailchain/message-composer receives a total of 1,382 weekly downloads. As such, @mailchain/message-composer popularity was classified as popular.
We found that @mailchain/message-composer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.