# Attachments and inline images ## Regular attachments Attachments use base64 content and an optional MIME type. ```ts await mailer.send({ from: 'alerts@acme.com', to: 'alice@example.com', subject: 'Monthly invoice', text: 'Invoice attached.', attachments: [ { filename: 'invoice.pdf', content: pdfBase64, mimeType: 'application/pdf' } ] }); ``` ## Inline images with CID If an attachment includes a `cid`, the package treats it as an inline asset and builds the MIME structure accordingly. ```ts await mailer.send({ from: 'alerts@acme.com', to: 'alice@example.com', subject: 'Welcome', html: '