Hey guys, in this post will learn about email configuration in MantisBT.
Email Configuration is required to,
- Reset Password
- Confirm User Registration
- Notifications
If the Email is not configured,
- Users can’t receive any confirmation to register the account.
- Users can’t reset their password
- Users don’t receive any notifications about the issues
In order to overcome these, we have to configure email in MantisBT, so that the system can send emails to the user to fulfill their needs.
Letz see how to configure
Step 1 : Navigate to config_inc.php file
Step 2: Edit the config_inc.php file add below lines of code
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = ‘smtp.gmail.com’;
$g_smtp_port = ‘465’;
$g_smtp_connection_mode = ‘ssl’;
$g_smtp_username = ‘letzdotesting@gmail.com’;
$g_smtp_password = ‘xxxxx’;
$g_administrator_email = ‘letzdotesting@gmail.com’;
$g_webmaster_email = ‘letzdotesting@gmail.com’;
$g_from_email = ‘letzdotesting@gmail.com’;
$g_return_path_email = ‘letzdotesting@gmail.com’;
$g_default_timezone = ‘UTC’;
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
$g_log_destination = ‘file:C:\mantisbt.log’;
Note: If your using gmail make sure allow less secure apps option turned on the gmail account that you are using to send emails.
Step 3: After adding the code, the file looks like below.
Step 4: Save the file
Click Invite Users and add all the required details to create a user in MantisBT.
Next page, Click Reset Password to send confirmation URL via E-mail.
Note: If you have not configured email, the invited user will not receive any email from the MantisBT system:)
Check the created user’s email, he would have received account registration link
By clicking the link, the user can confirm registration and set his own access password to access the assigned projects.
Note: Only administrator can perform all available functions like Manage users, Manage projects etc.,
Let me know how your configuration goes in the comments section below.
Suggested Readings:
Top 30 Cucumber Interview Questions & Answers
Steps to automate two-factor authentication (2FA) using selenium
Top 40 Selenium Interview Questions & Answers
Know anyone who would like to learn MantisBT? Let them know by sharing this article on Facebook, Twitter, Pinterest or Google Plus.