Email Setting Error

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
aali
Posts: 1
Joined: 05 Jun 2014, 04:59

Email Setting Error

Post by aali »

Hi,
Im trying to configure email notification in mantis using gmail smtp but im having issues and not able to send email from mantis.

I've have followed this post "http://www.mantisbt.org/forums/viewtopi ... =3&t=15398" but whenever mention 'tls' with port 587 mantis is throwing following error,
Testing Mail -
SYSTEM WARNING: 'stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto' in 'C:\inetpub\wwwroot\mantisbt\library\phpmailer\class.smtp.php' line 249


My Config_Inc file:
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = '123456';


/* Email Settings */

$g_allow_signup = ON;
$g_allow_anonymous_login = OFF;
$g_anonymous_account = '';

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_username = 'aa8842155@gmail.com';
$g_smtp_password = '******';
$g_administrator_email = 'aa8842155@gmail.com';
$g_webmaster_email = 'aa8842155@gmail.com';
$g_from_name = 'Mantis Bug Tracker';
$g_from_email = 'aa8842155@gmail.com';
$g_return_path_email = 'aa8842155@gmail.com';
$g_enable_email_notification = ON; //enables the email messages
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT | LOG_FILTERING | LOG_AJAX;
$g_log_destination='file:C:\mantisbt.log';
$g_validate_email = ON;
?>

FYI, When i change connection_mode ' ' with port 25, i got following error in logfile,
2014-06-04 23:01 PDT mail ERROR: Message could not be sent - SMTP Error: Could not authenticate.

When i change connection_mode 'ssl' with port 465, i got following error in logfile,
2014-06-04 23:03 PDT mail ERROR: Message could not be sent - SMTP Error: Could not connect to SMTP host.

Rgds
AAli
Attachments
config_defaults_inc.rar
Config_Default_inc is attached
(28.62 KiB) Downloaded 335 times
Post Reply