Email Server
Email Server plugin is available in ReportPortal on the Plugins page.
You don't need to download. It is already available in ReportPortal on the Plugins page.
Add Email Server integration
You can integrate our centralized test automation tool with an Email Server via the SMTP protocol.
This integration enables you to perform functions such as:
- inviting new users to the project
- configuring notification rules on launch finish
- receiving notifications about account deletion, creation of project Email Server integration, completion of index generation for the analyzer
A user with the account role Administrator can configure email integration for the entire instance or on a per-project basis.
A user with the account role Project Manager can configure email integration only for projects where they are assigned as the Project Manager.
Global Email Server integration
To configure the SMTP server for the whole instance:
-
Log in as ADMIN.
-
Go to Administrate > Plugins.
-
Click on Email Server plugin panel.
-
Click on "Add integration" button.
-
Fill in required parameters for integration.
-
Click "Create" button.
`Host`: <host name of email server> (required)
`Protocol`: <SMTP> (predefined)
`From name`: <string> (optional)
`From Email`: <user email address> (required)
`Port`: <port number> (required)
`Authorization`: OFF/ON (dropdown)
`Username`: <string> (required)
`Password`: <user email password> (required)
`TLS` or `SSL`: <should be checked depends on the selected port> (checkbox)
You can configure an Email Server using an email service provider (such as SendGrid) and enter a username in the Username field without including the @ symbol or undergoing additional validation.
Example of SMTP server configuration for Gmail email server (detailed info could be found here).
`Host`: smtp.gmail.com
`Protocol`: SMTP
`From name`: reportportal
`From Email`: reportportal1@gmail.com
`Port`: 587
`Authorization`: ON
`Username`: reportportal1
`Password`: <user email password>
`TLS`: checkbox should be checked
After Email Server integration is added, the configuration will apply to all projects within the instance.
Project Email Server integration
If email integration has not been added to the project, or if a Project Manager or Administrator wants to specify unique configurations for a specific project, they can configure the Email Server in the project settings.
To configure an SMTP server for a single project instance:
-
Log in as an ADMIN or Project Manager.
-
Go to Project Settings > Integrations.
-
Click on the Email Server integration panel.
-
Click on "Add Project integration" button.
-
Fill in required parameters for integration.
-
Click "Create" button.
`Host`: <host name of email server> (required)
`Protocol`: <SMTP> (predefined)
`From name`: <string> (optional)
`From Email`: <user email address> (required)
`Port`: <port number> (required)
`Authorization`: OFF/ON (dropdown)
`Username`: <string> (required)
`Password`: <user email password> (required)
`TLS` or `SSL`: <should be checked depends on the selected port> (checkbox)
Example of SMTP server configuration for Gmail email server (detailed info could be found here):
`Host`: smtp.gmail.com
`Protocol`: SMTP
`From name`: reportportal
`From Email`: reportportal1@gmail.com
`Port`: 587
`Authorization`: ON
`Username`: reportportal1
`Password`: <user email password>
`TLS`: checkbox should be checked
Create Email notification rule
-
Go to the Project settings -> Notifications.
-
Choose Email Notification Group.
-
Click ‘Create Rule’ button.
-
Fill the form:
Rule name – from 1 to 55 characters, mandatory field
Recipients - optional field, user name on the project or valid email
Launch owner - optional checkbox, who launched - that receives
When the Launch owner checkbox is unchecked, you must fill in the Recipients field.
In case – optional field, dropdown with the options:
- Always – notification will be sent in any case.
- 10% of items have issues – notification will be sent, if more than 10% of items have issues.
- 20% of items have issues – notification will be sent, if more than 20% of items have issues.
- 50% of items have issues – notification will be sent, if more than 50% of items have issues.
- Launch has issues – notification will be sent, if at least 1 item has issues
- Launch has ‘To Investigate’ items – notification will be sent, if at least 1 item has ‘To Investigate’
Launch names – optional field
You can select only existing launch name. The field allows multi select.
Attributes – optional checkbox
When the ‘Attributes’ checkbox is checked, you can provide key/value for attributes and select the necessary radio button:
- ‘All attributes should match’
- ‘Any attribute should match’
- Click on ‘Create’ button.
Disable Email notifications
-
Go to the Project settings -> Notifications.
-
Turn OFF for Email.
Disable plugin
-
Log in to ReportPortal as administrator.
-
Go to Administrate -> Plugins section -> Notifications tab.
-
Find Email plugin and click on it.
-
Turn OFF.