The cheapest way to fax out of Zoho Creator is not an API at all — it is email. Every mainstream fax provider accepts a message sent to <number>@theirdomain and puts the attachment on the wire. That means Deluge’s built-in sendmail can fax a report template as a PDF with no OAuth, no tokens, and no third-party API to maintain.
The original gateway is dead. The 2018 version of this script faxed by mailing 1<number>@fax.com. That gateway no longer exists — fax.com now redirects to an eFax marketing page and its mail records point at ordinary mail hosting, not fax infrastructure. The example below uses SRFax; the table further down lists the current address format for each major provider. The original also cleared the fax flag on every record in the form rather than the one being edited, which is corrected here.
zoho.adminuserid resolves to.Procedure_Data here) with Fax_No, Subject_field, Content, and a Fax decision-box field.ConsultPrintFax holding the page you want faxed.// ── Button action on the report ──────────────
void Send.Fax(int id)
{
openUrl("#Form:Procedure_Data?recLinkID=" + input.id + "&viewLinkName=Consults_List&Fax=true","popup window");
}
// ── On Edit > On Success of the data form ────
if(input.Fax == true)
{
// Clear the flag on THIS record only.
input.Fax = false;
faxTo = input.Fax_No.replaceAll("[^0-9]",""); // digits only
if(faxTo.length() == 10)
{
faxTo = "1" + faxTo; // US/Canada country code
}
sendmail
[
from : zoho.adminuserid
to : faxTo + "@srfax.com"
subject : input.Subject_field
message : input.Content
Attachments : template:ConsultPrintFax as PDF
]
info "Fax queued to " + faxTo;
}| Provider | Address |
|---|---|
| SRFax | <number>@srfax.com |
| Fax.Plus | <+E164>@fax.plus |
| eFax (consumer) | <number>@send.efax.com |
| eFax Corporate | <number>@efaxsend.com |
| Documo / mFax | <11-digit>@send.mfax.io |
Fax decision box is how the On Success script tells “send this” apart from an ordinary edit.sendmail stops a re-save from faxing twice.This script is part of the free Creator Scripts Deluge Library.
All 39 Deluge scripts, the full Zoho Creator course, and every downloadable asset are now free. Get free access →