Email Notifications
You can send email notifications to your users from anywhere in your application.
Emails use a JSON template for content - no need to wrestle with HTML tables. The JSON is then injected into an email template located in the /emails
directory.
You can also use a custom HTML template by passing the file name as a custom
value.
Sending Notifications to Yourself
If you wish to send a notification to yourself, you can use the mail utility endpoint:
Using Other Mail Providers
If you wish to use another mail provider, you can simply install the nodemailer transport package for your chosen service and update the mail.send
method in helper/mail
.
Change the require import on line 7 of helper/mail to import your package
Update the authentication object in line 25 of helper/mail to match your service's requirements
Using Custom Email Templates
Gravity includes a clean, responsive email template, but you can also add your own templates to cover a wider variety of use cases.
Notification Preferences
Users can't toggle which email notifications they would like to receive in the notifications section of their account.
These settings are stored in the database notifications table. By default, the following preferences are included for you:
new_signin
plan_updated
card_updated
invite_accepted
Last updated
Was this helpful?