Hi.
I was wondering if anything changed regarding setting up the SMTP connection between 1.9.12 and 1.9.13? I have no way that I know of to test this on the demo server, which is why I'm asking. The exact same settings that worked for SMTP setup in 1.9.12 don't work for us since upgrading to 1.9.13. I have searched the forum and the web and have not found anything regarding this. I have also tried using the example file that comes with 1.9.13 (which seems to be a little different) and used that as my starting point, but it didn't work either.
Here are the settings that work for us in 1.9.12 but not in 1.9.13 for our custom_config.inc.php file:
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.ourdomain.com:587'; # SMTP server MUST BE configured
$g_smtp_connection_mode = 'tls';
$g_tl_admin_email = 'testlink-admin@ourdomain.com'; # for problem/error notification
$g_from_email = 'testlink-admin@ourdomain.com'; # email sender
$g_return_path_email = 'testlink-admin@ourdomain.com';
$g_smtp_username = 'testlink-admin@ourdomain.com';
$g_smtp_password = 'password';
I have also tried replacing the port 587 at the end of the smpt_host with a separate line of
$g_smtp_port = 587;
That didn't work either.
I noticed there are two new lines commented out in the new example file with 1.9.13, but I'm not sure if they're relevant because they don't match what's in the config.inc.php.
The new lines in custom_config.inc.php.example file:
# Taken from mantis for phpmailer config
#define ("SMTP_SEND",2);
#$g_phpMailer_method = SMTP_SEND;
However, the config.inc.php that comes with 1.9.13 doesn't say anything about SMTP_SEND so I'm confused. Here is the config.inc.php (default that I don't change):
/**
* Taken from mantis for phpmailer config
* select the method to mail by:
* PHPMAILER_METHOD_MAIL - mail()
* PHPMAILER_METHOD_SENDMAIL - sendmail
* PHPMAILER_METHOD_SMTP - SMTP
*/
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
Thanks for any help
RESOLVED: Email configuration changed in 1.9.13?
Moderators: Amaradana, TurboPT, TL Developers
RESOLVED: Email configuration changed in 1.9.13?
Last edited by AMC4x4 on Tue Feb 24, 2015 3:51 pm, edited 1 time in total.
Re: Email configuration changed in 1.9.13?
Resolved. Did some more digging with fresh eyes this morning. My searches had been for SMTP / email issues. Upon looking in Mantis a little more, I found the issue with lost password requests not being sent.
For anyone else having this issue, it wasn't email itself, just the lost password function:
http://mantis.testlink.org/view.php?id=6954
UPDATE: 2015/08/10 -------------------------
The LINK provided by fman in Mantis is BROKEN.
The correct code update is now here:
https://github.com/TestLinkOpenSourceTR ... 42a5661982
For anyone else having this issue, it wasn't email itself, just the lost password function:
http://mantis.testlink.org/view.php?id=6954
UPDATE: 2015/08/10 -------------------------
The LINK provided by fman in Mantis is BROKEN.
The correct code update is now here:
https://github.com/TestLinkOpenSourceTR ... 42a5661982
Last edited by AMC4x4 on Mon Aug 10, 2015 9:49 pm, edited 1 time in total.
Re: RESOLVED: Email configuration changed in 1.9.13?
good to know, in any case this is a new proof regarding issue or post writting.
when context is missing (i.e. the well know example of the printer do not work) is near impossible to help.
In this post situation was too generic (mail did not work), but without providing detailed steps to reproduce.
when context is missing (i.e. the well know example of the printer do not work) is near impossible to help.
In this post situation was too generic (mail did not work), but without providing detailed steps to reproduce.
Re: RESOLVED: Email configuration changed in 1.9.13?
Hello everyone, I have testlink 1.9.13, php 5.5.22, in the same server I'm using Mantis. My testlink is working fine, excepting the mail notifications and recovery password functionality. I've followed the corrections in funtions for user administration, I've configured the custom_config.inc.php:
$g_smtp_host = "localhost"; # SMTP server MUST BE configured
# Configure using custom_config.inc.php
$g_tl_admin_email = 'user@mail'; # for problem/error notification
$g_from_email = 'user@mail'; # email sender
$g_return_path_email = 'user@mail';
# Urgent = 1, Not Urgent = 5, Disable = 0
$g_mail_priority = 3;
# Taken from mantis for phpmailer config
#define ("SMTP_SEND",2);
$g_phpMailer_method = SMTP_SEND;
// Configure only if SMTP server requires authentication
//$g_smtp_username = ''; # user
//$g_smtp_password = ''; # password
//
We don't need user and password, and as reference, Mantis have the same values configured and it's sending mail without problem.... my maillog has no errors related and need some help to continue.
Hope you can help.
Thanks!!
Cary
$g_smtp_host = "localhost"; # SMTP server MUST BE configured
# Configure using custom_config.inc.php
$g_tl_admin_email = 'user@mail'; # for problem/error notification
$g_from_email = 'user@mail'; # email sender
$g_return_path_email = 'user@mail';
# Urgent = 1, Not Urgent = 5, Disable = 0
$g_mail_priority = 3;
# Taken from mantis for phpmailer config
#define ("SMTP_SEND",2);
$g_phpMailer_method = SMTP_SEND;
// Configure only if SMTP server requires authentication
//$g_smtp_username = ''; # user
//$g_smtp_password = ''; # password
//
We don't need user and password, and as reference, Mantis have the same values configured and it's sending mail without problem.... my maillog has no errors related and need some help to continue.
Hope you can help.
Thanks!!
Cary
Re: RESOLVED: Email configuration changed in 1.9.13?
Can you please post the fix for this problem so that I can resolve the same in 1.9.13 ? I can't get the below link working
https://www.gitorious.org/testlink-ga/t ... 42a5661982
https://www.gitorious.org/testlink-ga/t ... 42a5661982
Re: RESOLVED: Email configuration changed in 1.9.13?
get latest code from github, do fresh install, retest and provide feedback
Re: RESOLVED: Email configuration changed in 1.9.13?
Steps to reproduce:
1) Navigate to Testlink login page.
2) Click "Lost Password."
3) On next page, enter username for which to retrieve lost password.
4) Click Send button.
5) Wait forever, as email never arrives.
Sorry, I should have added those steps in my original post instead of just saying it "didn't work." I will try to do better next time.
To help those looking for the link from Mantis that doesn't work any more (and who might need to implement this fix in 1.9.13 instead of installing the latest from GitHub), I did some research and tracked the change back to here:
https://github.com/TestLinkOpenSourceTR ... 42a5661982
Try those changes in lib/functions/users.inc.php and it should work for you, as it did for us before I moved us to 1.9.14.
Hope it helps!!
1) Navigate to Testlink login page.
2) Click "Lost Password."
3) On next page, enter username for which to retrieve lost password.
4) Click Send button.
5) Wait forever, as email never arrives.
Sorry, I should have added those steps in my original post instead of just saying it "didn't work." I will try to do better next time.
To help those looking for the link from Mantis that doesn't work any more (and who might need to implement this fix in 1.9.13 instead of installing the latest from GitHub), I did some research and tracked the change back to here:
https://github.com/TestLinkOpenSourceTR ... 42a5661982
Try those changes in lib/functions/users.inc.php and it should work for you, as it did for us before I moved us to 1.9.14.
Hope it helps!!
Re: RESOLVED: Email configuration changed in 1.9.13?
Thanks for details and ALSO FOR THE instructions to access the commit after we have moved from gitorious to github
Re: RESOLVED: Email configuration changed in 1.9.13?
Hi, I have a slightly similar issue.
While trying to generate one of the reports from TestLink, I'm getting bellow error message on screen
"
Warning: Problems sending mail - details: SMTP Error: Data not accepted.
SMTP server error: 5.7.60 SMTP; Client does not have permissions to send as this sender
"
Below are the details :
#Testlink version 1.9.14
# Configure using custom_config.inc.php
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com'; # SMTP server MUST BE configured
$g_tl_admin_email = 'TMSAdmin@domain.com'; # for problem/error notification
$g_from_email = 'testlink@domain.com'; # email sender
$g_return_path_email = 'testlink@domain.com';
$g_mail_priority = 5;
$g_smtp_username = 'testlink@domain.com'; # user
$g_smtp_password = 'email password'; # password
$g_smtp_port = 587;
$g_smtp_connection_mode = 'tls';
When i have made changes in custom_config.inc.php example - one line un-commented.
# Taken from mantis for phpmailer config
#define ("SMTP_SEND",2);
$g_phpMailer_method = SMTP_SEND;
Then, the email is sent to user but not receiving.
Just for information, Lost password and Reset password is working fine and users are getting email notification. But during the report generation from Test Report menu, getting Warning message.
Can any one please guide or suggest me on this issue.
While trying to generate one of the reports from TestLink, I'm getting bellow error message on screen
"
Warning: Problems sending mail - details: SMTP Error: Data not accepted.
SMTP server error: 5.7.60 SMTP; Client does not have permissions to send as this sender
"
Below are the details :
#Testlink version 1.9.14
# Configure using custom_config.inc.php
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com'; # SMTP server MUST BE configured
$g_tl_admin_email = 'TMSAdmin@domain.com'; # for problem/error notification
$g_from_email = 'testlink@domain.com'; # email sender
$g_return_path_email = 'testlink@domain.com';
$g_mail_priority = 5;
$g_smtp_username = 'testlink@domain.com'; # user
$g_smtp_password = 'email password'; # password
$g_smtp_port = 587;
$g_smtp_connection_mode = 'tls';
When i have made changes in custom_config.inc.php example - one line un-commented.
# Taken from mantis for phpmailer config
#define ("SMTP_SEND",2);
$g_phpMailer_method = SMTP_SEND;
Then, the email is sent to user but not receiving.
Just for information, Lost password and Reset password is working fine and users are getting email notification. But during the report generation from Test Report menu, getting Warning message.
Can any one please guide or suggest me on this issue.