@lacspace/mailer
A tiny zero-dependency SMTP client for Node backends — send email over raw net/tls with STARTTLS, AUTH, attachments and provider presets (Hostinger, Gmail, Outlook, Zoho…). One-line setup.
npm i @lacspace/mailerUsage
import { createMailer, presets } from "@lacspace/mailer";
const mail = createMailer(
presets.hostinger({ user: "no-reply@lacspace.com", pass: process.env.SMTP_PASS! }),
);
await mail.send({
to: "customer@example.com",
subject: "Welcome to Lacspace ✨",
html: "<h1>You're in!</h1><p>Thanks for signing up.</p>",
text: "You're in! Thanks for signing up.",
});Exports 5
MailerSmtpErrorcreateMailermailerFromEnvpresetsKeywords
smtpemailmailersend-emailnodemailer-alternativehostinger
More in Mail Kit
@lacspace/email-templates
Compose bulletproof, responsive, dark-mode-aware HTML emails from simple blocks — buttons, OTP codes, invoices — with ready-made OTP/welcome/alert/invoice templates. Zero-dependency, isomorphic.
@lacspace/email-validateSmart email validation — syntax, disposable/temp-mail detection, role & free-provider flags, Gmail normalization and 'did you mean?' typo suggestions. Zero-dependency, isomorphic.
@lacspace/email-verifyBest-effort email deliverability checks for Node — syntax + disposable, MX record lookup and an optional SMTP RCPT probe (no mail sent). Zero npm dependencies.