post https://hub.suprsend.com//trigger/
You can add email attachment as $attachment in data
You can add attachment as data->"$attachments"
. Attachments can be passed as base-64 file (allowed size limit for base-64 file < 50KB) or directly as the media URL.
// adding base-64 file (supported limit < 50KB)
{
"data": {
"$attachments": [
{
"filename": "billing.pdf",
"contentType": "application/pdf",
"data": "Q29uZ3JhdHVsYXRpb25zLCB5b3UgY2FuIGJhc2U2NCBkZWNvZGUh" // this is base64 encoded content
}
]
}
}
// adding URL directly (no limit on the file size)
{
"data": {
"$attachments": [
{
"filename": "Bitcoin-whitepaper.pdf", // optional. if not present, filename will be picked from the url
"url": "https://bitcoincore.org/bitcoin.pdf",
"ignore_if_error": true/false
}
]
}
}