Configure Email Notifications
You can configure email notifications to be sent when specific events occur. Notifications can be sent for each of the following events:
Event | Description |
New Comment and Forum Topics | Notification to email recipient when a new comment or forum topic is posted on the site |
New Member Registration | Confirmation email to the new member when registering for a portal account |
New Application Created | Notification to administrative staff when a member creates a new application |
New Key Issued | Notification to the requestor and to administrative staff containing the generated API key |
Before You Begin
Before you configure your email notifications, you must decide what should be the "from" email account and email name.
The "from" email is the address from which all emails generated by the developer portal will be sent. This must be a valid email address and must be able to receive and accept an authentication email.
Mashery typically suggests using the formats:
- Email account - noreply@<customername>.com, for example noreply@Mashery.com
- Email name - <customername> API, for example Mashery API
SMTP Authentication
In order to allow emails to be sent without being blocked by spam filters, Mashery uses an authenticated SMTP service.
To configure for SMTP authentication:
- Notify Mashery of your chosen email account and email name.
- Mashery inputs your new email account, and sends a confirmation email from AuthSMTP.
- Open the confirmation email, and click the link within. This enables the AuthSMTP service for your email account.
- If appropriate, add authSMTP.com to your SPF records.
If you have Sender Policy Framework (SPF) in your domain, you must add authSMTP.com to your SPF record. To check this, use the following command line:
dig -t TXT YOURDOMAIN | grep 'spf'
You should see output similar to the following:
YOURDOMAIN. 3600 IN TXT "v=spf1 ptr ip4:74.205.62.0/24 ip4:64.13.137.192/27 ip4:75.34.104.100 a:authsmtp.com -all"
Setting Up Email Notifications
To configure email notifications:
- Click the Dashboard link in the upper right corner of your Portal website.
- Click the Settings tab, then click Notifications.
- For the events you wish to configure, enter the necessary information:
Notification | Field | Description |
New Comment and Forum Topics | Email address(es) for all recipients | |
New Member Registration | From Email | Address from which emails are sent. See Before You Begin above. |
From Name | Within the email, the name that appears in the 'From' address field | |
Bcc Email | Additional email address(es) to send a blind copy of the notification | |
Subject | Subject field in the email notification | |
Body | Text you wish to appear in the body of the email notification | |
New Key Issued | From Email | Address from which emails are sent. See Before You Begin above. |
From Name | Within the email, the name that appears in the 'From' address field | |
Bcc Email | Additional email address(es) to send a blind copy of the notification | |
Subject | Subject field in the email notification | |
Body | Text you wish to appear in the body of the email notification |
Email Variables
Use the list below of available variables to help customize your notification.
In the following example, the Subject will be customized to display the recipient's moniker.
Available variables are:
- member_email
- member_first_name
- member_last_name
- member_handle
- member_moniker
- member_uri
- member_blog
- member_im
- member_imsvc
- member_phone
- member_company
- member_address1
- member_address2
- member_city_or_town
- member_state_province_abbr
- member_zip_code
- member_country_code
- api_key - developer key
- api_moniker - name of the Service as defined in the dashboard, for example "Mashery API"
- area_subj - portal name entered in the Settings -> Portal Setup page
- registered_app - application name the developer just registered
Docs Navigation
- API Documentation Portal
- IO Docs Definition
- Mashery API Documentation
- Mashery 3.0 API Guide
- Mashery 2.0 API Guide
- OAuth Supporting Methods
- Examples
- JSON RPC
- Authentication
- API Objects
- Fetching Objects
- Query Language
- Creating Objects
- Updating Objects
- Validating Fields
- Deleting Objects
- Applications
- General Object Methods
- Members
- Packages
- Plans
- Package Keys
- Keys
- Developer Classes
- Services
- Roles
- Mashery 2.0 Reporting API Guide
- Event Trigger API
- Differences between Roles and Portal Access Groups
- Managing a Portal Access Group Using Mashery V2 or V3 API
- Mashery Reporting Event Post API Guide
- Tips and Tricks
- Your Portal
- API Traffic Manager
- I/O Docs WSDL requirements