Your invoice is attached.
', attachments: [sendpierAttachment(file, 'application/pdf')], }); console.log(response.raw); if (response.status !== 202) { // 413 message_too_large means the whole message went over 25 MB; send big // files as a download link instead. 422 attachment_type_blocked means the // file type would never reach an inbox anyway -- the last extension counts, // so invoice.pdf.exe is an .exe. console.error(`request failed with HTTP ${response.status}`); process.exit(1); } for (const message of response.body?.data ?? []) { console.error(`queued ${message.id} for ${message.to}`); }