You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -85,7 +89,7 @@ const server = new ParseServer({
85
89
htmlPath: './files/verification_email.html')
86
90
},
87
91
// A custom email template that can be used when sending emails
88
-
// from Cloud Code; the template name can be choosen freely; it
92
+
// from Cloud Code; the template name can be chosen freely; it
89
93
// is possible to add various custom templates.
90
94
customEmail: {
91
95
subjectPath: './files/custom_email_subject.txt'),
@@ -119,7 +123,7 @@ const server = new ParseServer({
119
123
}
120
124
}
121
125
},
122
-
// The asynronous callback that contains the composed email payload to
126
+
// The asynchronous callback that contains the composed email payload to
123
127
// be passed on to an 3rd party API and optional meta data. The payload
124
128
// may need to be converted specifically for the API; conversion for
125
129
// common APIs is conveniently available in the `ApiPayloadConverter`.
@@ -174,9 +178,9 @@ Localization allows to use a specific template depending on the user locale. To
174
178
175
179
The locale returned by `localeCallback` will be used to look for locale-specific template files. If the callback returns an invalid locale or nothing at all (`undefined`), localization will be ignored and the default files will be used.
176
180
177
-
The locale-specific files are placed in subfolders with the name of either the whole locale (e.g. `de-AT`), or only the language (e.g. `de`). The locale has to be in format `[language]-[country]` as specified in [IETF BCP 47](https://tools.ietf.org/html/bcp47), e.g. `de-AT`.
181
+
The locale-specific files are placed in sub-folders with the name of either the whole locale (e.g. `de-AT`), or only the language (e.g. `de`). The locale has to be in format `[language]-[country]` as specified in [IETF BCP 47](https://tools.ietf.org/html/bcp47), e.g. `de-AT`.
178
182
179
-
Localized files are placed in subfolders of the given path, for example:
183
+
Localized files are placed in sub-folders of the given path, for example:
180
184
```js
181
185
base/
182
186
├── example.html// default file
@@ -221,7 +225,77 @@ Parse.Cloud.sendEmail({
221
225
|`extra`|`Object`| yes |`{}`|`{ key: value }`| Any additional variables to pass to the mail provider API. |
222
226
|`user`|`Parse.User`| yes |`undefined`| - | The Parse User that the is the recipient of the email. |
223
227
228
+
# Supported APIs
229
+
230
+
This adapter supports any REST API by adapting the API payload in the adapter configuration `apiCallback` according to the API specification.
231
+
232
+
## Providers
233
+
234
+
For convenience, support for common APIs is already built into this adapter and available via the `ApiPayloadConverter`. The following is a list of currently supported API providers:
235
+
236
+
-[Mailgun](https://www.mailgun.com)
237
+
238
+
If the provider you are using is not already supported, please feel free to open a PR.
This is an example of how the API payload can be adapted in the adapter configuration `apiCallback` according to a custom email provider's API specification.
0 commit comments