From 88cd76356366bedc51f420cb924a0f8968175d4e Mon Sep 17 00:00:00 2001 From: dblythy Date: Sat, 26 Dec 2020 23:27:33 +1100 Subject: [PATCH 1/3] Documentation for sendMail --- _includes/cloudcode/cloud-code-advanced.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_includes/cloudcode/cloud-code-advanced.md b/_includes/cloudcode/cloud-code-advanced.md index 7a9f0bebb..6ab9c1581 100644 --- a/_includes/cloudcode/cloud-code-advanced.md +++ b/_includes/cloudcode/cloud-code-advanced.md @@ -583,6 +583,18 @@ Here's an example of the JSON data that would be sent in the request to this web After setting up your webhook in the Dashboard UI, you'll be acurately decrementing comment counts! +# Sending Emails +If your Parse Server configuration specifies an `emailAdapter`, you can send mail via cloud code using `Parse.Cloud.sendMail`. + +```javascript +Parse.Cloud.sendMail({ + from: 'Example ', + to: 'contact@example.com', + subject: 'Test email.', + text: 'This email is a test' +}); +``` + # Config Parse Config offers a convenient way to configure parameters in Cloud Code. From 568080f1362521488655cfeb71582422f4c2b19b Mon Sep 17 00:00:00 2001 From: dblythy Date: Sun, 27 Dec 2020 09:32:40 +1100 Subject: [PATCH 2/3] Update cloud-code-advanced.md --- _includes/cloudcode/cloud-code-advanced.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_includes/cloudcode/cloud-code-advanced.md b/_includes/cloudcode/cloud-code-advanced.md index 6ab9c1581..0f8480f3a 100644 --- a/_includes/cloudcode/cloud-code-advanced.md +++ b/_includes/cloudcode/cloud-code-advanced.md @@ -584,14 +584,14 @@ Here's an example of the JSON data that would be sent in the request to this web After setting up your webhook in the Dashboard UI, you'll be acurately decrementing comment counts! # Sending Emails -If your Parse Server configuration specifies an `emailAdapter`, you can send mail via cloud code using `Parse.Cloud.sendMail`. +If your Parse Server configuration specifies an `emailAdapter`, you can send mail via cloud code using `Parse.Cloud.sendEmail`. ```javascript -Parse.Cloud.sendMail({ +Parse.Cloud.sendEmail({ from: 'Example ', to: 'contact@example.com', - subject: 'Test email.', - text: 'This email is a test' + subject: 'Test email', + text: 'This email is a test.' }); ``` From 45396097b8ef4df197ef75d9c8a1e07fba466d42 Mon Sep 17 00:00:00 2001 From: dblythy Date: Fri, 1 Jan 2021 03:53:18 +1100 Subject: [PATCH 3/3] Update _includes/cloudcode/cloud-code-advanced.md Co-authored-by: Tom Fox <13188249+TomWFox@users.noreply.github.com> --- _includes/cloudcode/cloud-code-advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/cloudcode/cloud-code-advanced.md b/_includes/cloudcode/cloud-code-advanced.md index 0f8480f3a..45fd46646 100644 --- a/_includes/cloudcode/cloud-code-advanced.md +++ b/_includes/cloudcode/cloud-code-advanced.md @@ -584,7 +584,7 @@ Here's an example of the JSON data that would be sent in the request to this web After setting up your webhook in the Dashboard UI, you'll be acurately decrementing comment counts! # Sending Emails -If your Parse Server configuration specifies an `emailAdapter`, you can send mail via cloud code using `Parse.Cloud.sendEmail`. +If your Parse Server configuration specifies an `emailAdapter`, you can send email via cloud code using `Parse.Cloud.sendEmail`. ```javascript Parse.Cloud.sendEmail({