↵select↑↓navigateescclose
Search PostGrid Direct Mail

Direct Mail via PostGrid

Mail the printed version of a Frappe or ERPNext document as a physical letter through PostGrid, by hand or from a Notification.

Updated
On this page

Some customers and suppliers still need paper: invoices, statements, notices and purchase orders. Direct Mail via PostGrid mails the printed version of a Frappe or ERPNext document as a physical letter through PostGrid's Print & Mail API, so nobody has to print, fold, stuff or stamp anything. PostGrid prints and posts the letter, and its delivery status comes back to the document's timeline.

It is for teams that send documents by post and want the letter recorded on the document it came from. Letters go to any Frappe Address, optionally to the attention of a Contact, so they work for customers, suppliers, employees and any other DocType that links to an address. It runs on Frappe v16, ERPNext is optional, and it is free software under the MIT licence.

What you get

A Mail button on the print view

The print view of every submitted document has a Mail button. It opens the Mail Letter dialog with the sender, recipient and contact filled in from the document, and mails the print format you are looking at, with an optional cover letter in front. See Mail a document.

The Mail Letter dialog on a statement's print view, with the sender, recipient, contact and mailing options filled in

Letters from Notifications

A Mailed Letter channel on Notification mails the document on the New, Save, Submit and Cancel events, a number of days before or after a date, or on the after_insert, on_update, on_submit and on_cancel methods. See Mail documents from a Notification.

A Notification on the Mailed Letter channel, with its sender, recipient fields and mailing options

Delivery status in the timeline

Each letter appears in the document's timeline with its recipient, its delivery status and a link to the letter in the PostGrid dashboard. PostGrid's webhook keeps the status current, and the app can keep a copy of PostGrid's PDF and update addresses with PostGrid's verified version. See Track mailed letters.

A mailed letter in the statement's timeline, with its recipient, delivery status and PostGrid menu

One settings page

PostGrid Settings holds the Test and Live API keys, the mode in use and the default mailing options the Mail dialog starts from. See Configuration.

Where to start

You areRead
A user mailing documentsMail a document, then Track mailed letters
The administrator setting it upInstall and upgrade, Configuration and Mail documents from a Notification
Anyone whose letter did not go outLimitations and troubleshooting
A developer changing the appDevelopment and How it works

Requirements

  • A bench with Frappe v16. The app declares frappe >=16.0.0,<17.0.0.

  • No other Frappe app. With ERPNext installed, the Mail dialog and the Notification form also fall back to the company's default address for the sender.

  • A PostGrid Print & Mail account and its Test or Live API key.

  • A site that PostGrid can reach over the internet, for delivery status updates.

Source and changes

The source is at github.com/Avunu/postgrid_direct_mail. Release notes are on the releases page.