Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for sendMail #806

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions _includes/cloudcode/cloud-code-advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
dblythy marked this conversation as resolved.
Show resolved Hide resolved

```javascript
Parse.Cloud.sendMail({
dblythy marked this conversation as resolved.
Show resolved Hide resolved
from: 'Example <[email protected]>',
to: '[email protected]',
subject: 'Test email.',
dblythy marked this conversation as resolved.
Show resolved Hide resolved
text: 'This email is a test'
});
```

# Config
Parse Config offers a convenient way to configure parameters in Cloud Code.

Expand Down