File Cache
You may want to add attachments or images to your transactional emails. While these files may be stored locally on your device, ZeptoMail provides a File Cache section where you can upload and manage them. Using File Cache allows you to store, organize, and reuse files from a centralized location.
Once a file is uploaded, ZeptoMail automatically assigns a File Cache Key. You can use this key in your API or SMTP configuration to include the file as an inline image or attachment in your emails.
Points to note:
- The total email size which includes your email headers, body content, inline images, and attachments should NOT exceed 15 MB
- The total file cache storage capacity for an account is 1GB.
- 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.
Table of Contents
Upload your attachment:
- From the left pane, select the Mail Agent in which the attachment has to be uploaded.
- Navigate to File Cache tab. All the uploaded files will be listed here.
- Click on Upload Files in the top-right corner. The upload files pop-up will appear.
- Add the desired files either by dragging and dropping or browsing for files in your device. You can add more than one file at a time.
- Once you have selected the required files, click Attach to upload the files to the File Cache section.
- A unique File Cache Key is generated for every uploaded file. You can use the desired attachment's Key while sending emails using API.
You can use the files in File Cache as attachments while sending emails using SMTP too. 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
You can search a particular attachment using the Search option. To do so:
- Select the desired Mail Agent from the left pane.
- Navigate to the File Cache tab.
- Click on the Select Criteria drop-down box. Choose the condition based on which you wish to search — File name or File cache key.
- Enter the entire filename. For example, if the filename is "attachment", search for the filename along with the extension — filename.png and click the Search icon.
- The values will be fetched and displayed.
Delete your attachment
- From the left pane, select the desired Mail Agent where the attachment has to be deleted.
- Navigate to File Cache tab. Here, you can view the uploaded files.
- Hover over the file you want to delete. Click the delete icon on the right. Once an image or attachment is deleted, it cannot be recovered.
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.