MantisBT - TestLink
View Issue Details
0008564TestLink0 - User too Lazy to analize defined categoriespublic2019-02-12 06:552019-04-02 20:38
user18204 
fman 
normalblockalways
resolvedunable to reproduce 
 
 
MySQL
TBD
0008564: SMTP Configuration in Test Link
Hi Team,

Can you please help to resolve this below issue.

I tried with all possible combinations, but nothing worked out.

Waiting for your replay at the earliet..


Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting [^] in D:\xampp\htdocs\Testlink\vendor\phpmailer\phpmailer\src\PHPMailer.php:1726 Stack trace: #0 D:\xampp\htdocs\Testlink\vendor\phpmailer\phpmailer\src\PHPMailer.php(1481): PHPMailer\PHPMailer\PHPMailer->smtpSend('Date: Tue, 12 F...', '\r\nYour new Test...') #1 D:\xampp\htdocs\Testlink\vendor\phpmailer\phpmailer\src\PHPMailer.php(1320): PHPMailer\PHPMailer\PHPMailer->postSend() 0000002 D:\xampp\htdocs\Testlink\lib\functions\email_api.php(187): PHPMailer\PHPMailer\PHPMailer->send() 0000003 D:\xampp\htdocs\Testlink\lib\functions\users.inc.php(213): email_send('mpavithra.mani2...', 'mpavithra.mani2...', 'Your new TestLi...', 'Your new TestLi...') 0000004 D:\xampp\htdocs\Testlink\lib\usermanagement\usersEdit.php(244): resetPassword(Object(database), 12, 'send_password_b...') 0000005 D:\xampp\htdocs\Testlink\lib\usermanagement\usersEdit.php(58): createNewPassword(Object(database), Object(stdClass), Object(tlUser), in D:\xampp\htdocs\Testlink\vendor\phpmailer\phpmailer\src\PHPMailer.php on line 1726.

My SMTP configurations are

/* [SMTP] */

/**
 * @var string SMTP server name or IP address ("localhost" should work in the most cases)
 * Configure using custom_config.inc.php
 * @uses lib/functions/email_api.php
 */
$g_smtp_host = 'smtp.gmail.com'; # SMTP server MUST BE configured

# Configure using custom_config.inc.php
$g_tl_admin_email = 'mpavithra.mani229@gmail.com'; # for problem/error notification
$g_from_email = 'mpavithra.mani229@gmail.com'; # email sender
$g_return_path_email = 'mpavithra.mani229@gmail.com';

/**
 * Email notification priority (low by default)
 * Urgent = 1, Not Urgent = 5, Disable = 0
 **/
$g_mail_priority = 5;

/**
 * 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;

/** Configure only if SMTP server requires authentication */
$g_smtp_username = 'mpavithra.mani229@gmail.com'; # user
$g_smtp_password = 'XXXXXXXX'; # password

/**
 * This control the connection mode to SMTP server.
 * Can be '', 'ssl','tls'
 * @global string $g_smtp_connection_mode
 */
$g_smtp_connection_mode = 'tls';

/**
 * The smtp port to use. The typical SMTP ports are 25 and 587. The port to use
 * will depend on the SMTP server configuration and hence others may be used.
 * @global int $g_smtp_port
 */
$g_smtp_port = 465;
No tags attached.
Issue History
2019-02-12 06:55user18204New Issue
2019-02-12 10:11fmanQA Team - Task Workflow Status => TBD
2019-02-12 10:11fmanPriorityimmediate => normal
2019-02-12 10:11fmanCategoryTest Execute - Issue at Step Level => 0 - User too Lazy to analize defined categories
2019-02-12 10:12fmanNote Added: 0028523
2019-02-12 10:12fmanAssigned To => fman
2019-02-12 10:12fmanStatusnew => feedback
2019-02-12 14:40fmanNote Added: 0028526
2019-04-02 20:38fmanNote Added: 0028644
2019-04-02 20:38fmanStatusfeedback => resolved
2019-04-02 20:38fmanResolutionopen => unable to reproduce

Notes
(0028523)
fman   
2019-02-12 10:12   
TestLink Version used?

do not set to immediate unless you are willing to pay for the resolution
(0028526)
fman   
2019-02-12 14:40   
SMTP with Gmail is not as simple as with your company SMTP server.
Then issue can be the Gmail config.
My advice first try with some SMTP free service different than gmail

please provide feedback
(0028644)
fman   
2019-04-02 20:38   
no more user feedback