Email Settings - 1.9.10

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
rockanuta
TestLink user
Posts: 5
Joined: Sat Aug 08, 2015 8:31 am

Email Settings - 1.9.10

Post by rockanuta »

Hello, I have to 1.9.10 version and can not send e-mails, I need to reset passwords but I have this problem, my config file looks like this:

/* [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 = 'smtpout.secureserver.net'; # SMTP server MUST BE configured

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

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

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

/** Configure only if SMTP server requires authentication */
$g_smtp_username = 'my_email'; # user
$g_smtp_password = ''; # password

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

/**
* The smtp port to use. The typical SMTP ports are 25 and 587. The port to use
* will depend on the SMTP serv
er configuration and hence others may be used.
* @global int $g_smtp_port
*/
$g_smtp_port = 587;

In the application, returns the error:

Password Reset can not be done. Reason: Could not instantiate mail function.
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Email Settings - 1.9.10

Post by fman »

>> $g_phpMailer_method = SMTP_SEND;
this is wrong.
you can only use one of following CONSTANTS
/**
* Taken from mantis for phpmailer config
* select the method to mail by:
* PHPMAILER_METHOD_MAIL - mail()
* PHPMAILER_METHOD_SENDMAIL - sendmail
* PHPMAILER_METHOD_SMTP - SMTP
*/

on latest stable version this value is:
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
rockanuta
TestLink user
Posts: 5
Joined: Sat Aug 08, 2015 8:31 am

Re: Email Settings - 1.9.10

Post by rockanuta »

fman wrote:>> $g_phpMailer_method = SMTP_SEND;
this is wrong.
you can only use one of following CONSTANTS
/**
* Taken from mantis for phpmailer config
* select the method to mail by:
* PHPMAILER_METHOD_MAIL - mail()
* PHPMAILER_METHOD_SENDMAIL - sendmail
* PHPMAILER_METHOD_SMTP - SMTP
*/

on latest stable version this value is:
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
Thanks for the reply, continues with the same message.
Post Reply