File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,15 @@ You can modify the script to use any other API you like or debug-step through th
5858An example configuration to add the API Mail Adapter to Parse Server could look like this:
5959
6060```js
61- // Declare a mail client
62- const formData = require("form-data");
6361const Mailgun = require("mailgun.js");
62+ const formData = require("form-data");
63+ const { ApiPayloadConverter } = require("parse-server-api-mail-adapter");
64+
65+ // Configure mail client
6466const mailgun = new Mailgun(formData);
65- const mailgunClient = mailgun.client({
66- username: "api",
67- key: process.env.MAILGUN_API_KEY,
68- });
67+ const mailgunClient = mailgun.client({ username: "api", key: process.env.MAILGUN_API_KEY });
6968const mailgunDomain = process.env.MAILGUN_DOMAIN;
7069
71- const { ApiPayloadConverter } = require("parse-server-api-mail-adapter");
72-
7370// Configure Parse Server
7471const server = new ParseServer({
7572 ...otherServerOptions,
You can’t perform that action at this time.
0 commit comments