File Cache

You may want to add images to your transactional emails. For this, the images have to be stored in your server. Instead, you can upload your images in File Cache section. This will help you better manage your attachments as all of them are in one place. Once you upload an image to the File Cache, it will automatically be assigned a File Cache Key. Use the respective File Cache Key to add that image in your email API. 

  • The total email size which includes your email headers, body content, inline images, and attachments should NOT exceed 15 MB
  • File Cache supports up to 1 GB of storage

Note:

ZeptoMail does not support the following extensions as attachments:

ade, adp, bat, chm, cmd, com, cpl, exe, hta, ins, isp, js, jse, lib, lnk, mde, msc, msp, mst, pif, scr, sct, shb, sys, vb, vbe, vbs, vxd, wsc, wsf, wsh, app, asp, bas, cer, cnt, crt, csh, der, fxp, gadget, hlp, hpj, inf, ksh, mad, maf, mag, mam, maq, mar, mas, mat, mau, mav, maw, mda, mdb, mdt, mdw, mdz, msh, msh1, msh2, msh1xml, msh2xml, msi, msp, ops, osd, pcd, plg, prf, prg, pst, reg, scf, shs, ps1, ps1xml, ps2, ps2xml, psc1, psc2, tmp, url, vbp, vsmacros, vsw, ws, xnk

Upload your attachment:

  1. From the left panel, select Mail Agents and select a Mail Agent in which the attachment has to be uploaded.
  2. Navigate to File Cache tab. Here you can view the already uploaded files for this Mail Agent. All files uploaded here can be used as an inline image or an attachment in your emails
  3. Click on Upload Files in the top-right corner. This will open a box where you can add files.

  1. You can drag and drop files to add them or browse for files in your device. Once you have selected the required files, click on Attach to upload the added files to File Cache.

  2. A unique File Cache Key is generated for every uploaded file. Use File Cache Key in API to add it as an inline image or attachment to your email.

Note:

You can use the files uploaded to File Cache as attachments while sending emails using SMTP. Add X-TM-FILE-KEY parameter to the header and enter the File Cache Key as the parameter value.

Example: Multiple file cache keys without name - message.addHeader("X-TM-FILE-KEY", "filecachekey,filecachekey"); Multiple file cache keys with name - message.addHeader("X-TM-FILE-KEY", "filecachekey:name,filecachekey:name");

Search an attachment 

  1. From the top left panel, select Mail Agents and select a Mail Agent where the attachment has to be uploaded.
  2. Navigate to File Cache tab. Here you can view the already uploaded files for this Mail Agent.
  3. Click on the Select Criteria drop-down box. Choose the condition based on which you wish to search. You can search for files using 'File name' or 'File cache key'.
  4. Enter the corresponding values and press enter

Delete your attachment 

  1. From the left panel, select Mail Agents and select a Mail Agent where the attachment has to be deleted.
  2. Navigate to File Cache tab. Here you can view the already uploaded files for this Mail Agent.​
  3. Hover over the file you want to delete. Click on the delete icon on the right corner of the image. Once an image or attachment is deleted, it can not be recovered.

Note:

Before you get started it is important to know that ZeptoMail is for sending transactional emails like welcome emailers, password resets emails, OTPs. We do not support sending of bulk emails or promotional emails like newsletters or marketing campaign emails. If you are looking for a bulk email provider, check out Zoho Campaigns.