Zeptomail API with invoice attachment
I am unbale to figureout the API request (PHP) with attachment of order invoice pdf file. My code sample below -
$base64_attFile = chunk_split(base64_encode(file_get_contents($attFile)));
"subject":"Order Confirmation",
"attachments": { "content": "'.$base64_attFile.' ", "mime_type": "application/pdf", "name": "myinvoice.pdf"},
"htmlbody":"<div><b> Test email sent successfully. </b></div>",
}'
But getting error as follows -
- {"error":{"code":"TM_3301","details":[{"code":"SM_101","message":"Invalid value format","target":"attachments"}],"message":"Bad Syntax"}}
Kindly help me to fix it.
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
TransMail Overview
Note: TransMail is now ZeptoMail. Click here to know more. Hey there! It's been 5 months since we launched Zoho's transactional email service — TransMail. We've had great response and onboarded many users. I'd like to now give an overview of TransMail
TransMail has a new name—ZeptoMail!
Tried navigating to TransMail's community forum but see a different name now? That's because TransMail has a new name. TransMail is now ZeptoMail! As we’ve grown from an internal service used mainly by other Zoho products to an up-and-coming competitor
Welcome to TransMail community
Note: TransMail is now ZeptoMail. Click here to know more. Hi everyone, Welcome to TransMail's community forum. Though TransMail has been in use inside Zoho for nearly half a decade, we only recently launched it as a service to all of you. We'd firstly
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.