Use Case

Professional Invoice Delivery

Send invoices and billing emails with PDF attachments. Automated billing notifications for SaaS and e-commerce.

Why use Unosend for invoice emails?

PDF invoice attachments
Payment gateway integration
Automatic monthly invoices
Professional templates

Quick implementation

send-invoice-emails.js
await unosend.emails.send({
  from: 'billing@yourapp.com',
  to: customer.email,
  subject: 'Invoice #{{invoice_number}} from YourApp',
  template_id: 'tmpl_invoice',
  variables: {
    invoice_number: invoice.number,
    amount: invoice.amount,
    due_date: invoice.dueDate,
    payment_link: invoice.paymentUrl
  },
  attachments: [
    { filename: 'invoice.pdf', content: invoicePdfBase64 }
  ]
});

Frequently asked questions

Can I attach PDF invoices?

Yes! Attach PDFs by passing base64-encoded content or a URL to the file.

How do I integrate with payment providers?

Listen for payment webhook events (invoice.paid, invoice.created) and trigger emails automatically.

Can I schedule invoice emails?

Yes, use our scheduling feature to send invoices at specific times.

Related use cases

Ready to send invoice emails?

Start sending in minutes with 5,000 free emails per month.