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.
Email Settings - 1.9.10
Moderators: Amaradana, TurboPT, TL Developers
Re: Email Settings - 1.9.10
>> $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;
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;
Re: Email Settings - 1.9.10
Thanks for the reply, continues with the same message.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;