Mail API Get Email Attachment Content Returns HTTP Status 406

Mail API Get Email Attachment Content Returns HTTP Status 406

Hi,

I am trying to get the email attachments via the Mail API (https://www.zoho.com/mail/help/api/get-attachment-content.htmlin PHP using CURL. I am able to get the Email Content and Attachment Info (https://www.zoho.com/mail/help/api/get-attach-info.html) but when I try to get the attachment content via the https://mail.zoho.com/api/accounts/{accountId}/folders/{folderId}/messages/{messageId}/attachments/{attachmentId}
 Request URL, the response I am getting back is:

<!doctype html><html lang="en"><head><title>HTTP Status 406 \xe2\x80\x93 Not Acceptable</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 406 \xe2\x80\x93 Not Acceptable</h1></body></html>

Thank you in advance for any assistance.
Kelvin

      • Sticky Posts

      • Weekly Tips : Make collaboration effortless with Whiteboard in Zoho Mail

        Working with your team often means switching between emails, notes, and other applications just to explain an idea. Maybe you are trying to sketch a layout, plan a workflow, or quickly brainstorm ideas—with text alone, things can get confusing. So how
      • Weekly Tips : Make your email content error free with Spell check in Zoho Mail

        As someone who writes multiple emails a day, we are bound to make both grammatical and spelling errors. Most of them we may not even notice, and even if we do, we may not have the time to correct each one individually when we are in a hurry. So how do
      • Weekly Tips : Master Keyboard Shortcuts in Zoho Mail

        If you spend a lot of time managing emails, switching between your mouse and keyboard can slow you down. Whether you are replying to clients, organizing your inbox, or searching for messages, every second counts. So, how can you streamline your email
      • Weekly Tips: Manage External Images in Zoho Mail

        When you receive emails every day, whether from clients, newsletters, or services, many of them contain external images that automatically load when you open the message. While this can make emails look more engaging, it can also impact your privacy and
      • Weekly Tips : Teamwork made easy with Multiple Assignees

        Let's say you are working on a big project where different parts of a single task need attention from several people at the same time—like reviewing a proposal that requires input from sales, legal, and finance teams. Instead of sending separate reminders