
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@mightymax/mailqueue
Advanced tools
@mightymax/mailqueue is a small JavaScript client for the LDMax mailqueue API.
It is built for server-side apps that want to queue email over HTTP instead of talking to SMTP directly.
npm install @mightymax/mailqueue
import { sendMail } from '@mightymax/mailqueue';
await sendMail({
apiUrl: 'https://mailqueue.example.com',
token: process.env.MAILQUEUE_TOKEN!,
to: 'user@example.com',
subject: 'Welcome',
text: 'Your account is ready.'
});
The final from address is chosen by the mailqueue API based on the bearer token configuration.
token: required bearer token from the mailqueue admin UIto: required recipient email addresssubject: required subjecttext: optional plain-text bodyhtml: optional HTML bodyreplyTo: optional reply-to email addressscheduledAt: optional ISO datetime with offsetmaxAttempts: optional retry count between 1 and 10headers: optional extra string headersapiUrl: optional base URL, defaults to process.env.MAILQUEUE_URL or http://localhost:5173endpoint: optional API path, defaults to /api/v1/messagestimeoutMs: optional HTTP timeout, defaults to 10000fetch: optional custom fetch implementationAt least one of text or html is required.
MAILQUEUE_URL=https://mailqueue.example.com
MAILQUEUE_TOKEN=mq_xxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
import { sendMail } from '@mightymax/mailqueue';
export async function sendContactNotification(input: {
name: string;
email: string;
message: string;
}) {
await sendMail({
token: process.env.MAILQUEUE_TOKEN!,
to: 'sales@example.com',
subject: `New contact form message from ${input.name}`,
text: [
`Name: ${input.name}`,
`Email: ${input.email}`,
'',
input.message
].join('\n'),
replyTo: input.email,
headers: {
'x-app': 'website'
},
maxAttempts: 3
});
}
import { fail } from '@sveltejs/kit';
import { sendContactNotification } from '$lib/server/mailer';
export const actions = {
default: async ({ request }) => {
const form = await request.formData();
const name = String(form.get('name') ?? '').trim();
const email = String(form.get('email') ?? '').trim();
const message = String(form.get('message') ?? '').trim();
if (!name || !email || !message) {
return fail(400, {
error: 'Please fill in every field.',
values: { name, email, message }
});
}
try {
await sendContactNotification({ name, email, message });
} catch (error) {
return fail(502, {
error: error instanceof Error ? error.message : 'Unable to queue your message right now.',
values: { name, email, message }
});
}
return { success: true };
}
};
import { sendMail } from '@mightymax/mailqueue';
await sendMail({
token: process.env.MAILQUEUE_TOKEN!,
to: 'user@example.com',
subject: 'Invoice reminder',
text: 'This will be queued for later delivery.',
scheduledAt: '2026-04-01T09:00:00+02:00',
maxAttempts: 5
});
sendMail() throws normal JavaScript errors for:
Use regular try/catch in your app.
npm publish --access public
EUROPEAN UNION PUBLIC LICENCE v. 1.2
FAQs
Simple JavaScript client for the LDMax mailqueue API
We found that @mightymax/mailqueue demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.