Zoho send mail with attachments. Unable to send attachments

Zoho send mail with attachments. Unable to send attachments

Hi,
I am unable to send /  view attachments using zoho mail API.
These are the postman calls I made to upload an attachment and send mail

UPLOAD
Request  
headers: {"Authorization": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}

Response
{
  "status": {
    "code": 200,
    "description": "success"
  },
  "data": {
    "storeName": "xxxxxxxxx",
    "attachmentName": "C:/node/latestioc/ioc/ioc-backend/simdata.xlsx",
    "attachmentPath": "/Mail/xxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxx-simdata.xlsx"
  }
}

SEND MAIL
Request
headers: {"Authorization": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Content-Type": "application/json"}
body: 
{
"fromAddress": " xxxx@domain.io",
"toAddress": " yyyy@domain.com",
"subject": "Hello",
"content": "Email can never be dead. The most neutral and effective way, that can be used for one to many and two way communication.",
"attachments": [{"storeName": "xxxxxxxxx",
"attachmentPath": "/Mail/xxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxx-simdata.xlsx",
"attachmentName": "xxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxx-simdata.xlsx"
   }]
}

Response
{
  "status": {
    "code": 200,
    "description": "success"
  },
  "data": {
    "attachments": [
      {
        "attachmentName": "xxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxx-simdata.xlsx",
        "storeName": "xxxxxxxxx",
        "attachmentPath": "/Mail/xxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxx-simdata.xlsx"
      }
    ],
    "subject": "Hello",
    "fromAddress": " xxxx@domain.io",
    "toAddress": " yyyy@domain.com",
    "content": "Email can never be dead. The most neutral and effective way, that can be used for one to many and two way communication."
  }
}

I got the mail in gmail. When I tried to open the attachment in google sheets it shows error: " Unable to convert document.". I tried to open it in excel app, it says: "File format or file extension is not valid. verify that the file has not been corrupted and that the file extension matches the format of the file.". 
For upload header, I tried content-Type as application/x-www-form-urlencoded, application/json, application/octet-stream. Using x-www-form-urlencoded & json, I couldn't even send the email. Using octet-stream, I could send the email but the above problem prevails.
When I send the mail to zoho mail. I cannot even see the attachment. Someone please tell me what I'm doing wrong!

      • Sticky Posts

      • Zoho Mail POP & IMAP Server Details

        Hello all! We have been receiving a number of requests regarding the errors while configuring or using Zoho Mail account in POP/ IMAP clients. The server details vary based on your account type and the Datacenter in which your account is setup. Ensure
      • Important update on Group Management | Zoho Mail

        Dear Zoho Mail Community, This post is to inform you all of the following updates on the Group Management in Zoho Mail. Group Member Addition: If a group member is added to an organization group in a Zoho Application, the member will be automatically
      • Mastering email etiquette and best practices to follow in Zoho Mail

        Hello Zoho Mail Community, We’re thrilled to invite you all to our upcoming webinar: Mastering email etiquette and best practices to follow in Zoho Mail. Join our live webinar for expert etiquette tips to enhance your professionalism and elevate your
      • 📣 📣 ZUG Meetups India - Explore Hybrid Workspaces using Zoho Workplace - Meet and Learn! 🧑🏽‍💻🧑🏽‍💻

        We are excited to announce the User Community initiative to meet you all in person and help you explore the need of the hour - Hybrid Workspaces using Zoho Workplace. We aim to help you to setup your Digital Workplace effectively so that your employees
      • Announcing Zoho Mail - Inactive user Policy

        Dear Zoho Mail users, Thanks to all of you for your continuous support.  We have recently started implementing the Inactive User Policy, for Zoho Mail.  A user is considered as inactive, if the user has not logged in to the Zoho mail account for a period of more than 120 days. The login through POP, IMAP and Active Sync are all taken into account for tracking the period of inactivity.  Whoever received the communication need not panic, as we have just communicated our policy to all the users.  To