Company
Date Published
Author
Phil Nash
Word count
1553
Language
English
Hacker News points
None

Summary

Receiving a fax has become increasingly digital, and with Node.js, Twilio, SendGrid, and JavaScript, it's possible to forward faxes directly to an email inbox. To set this up, a Twilio number that supports fax is needed, which can be obtained through the Twilio console. A TwiML Bin is then created to receive incoming faxes, with a TwiML verb setting up a webhook to send the received fax as a PDF file to the SendGrid API. The JavaScript code uses the request module to download the fax and add it as an attachment to an email sent through the SendGrid API, which can be customized with sender and recipient addresses. Once set up, the function can receive incoming faxes and forward them to the designated email address.