Page 1 of 1

Email Configuration Issue

Posted: 01 Apr 2009, 06:42
by jazz2k8
Hi All,

i am a newbie to this forum..

i am using mantisbt 1.1.6 version.

It is working perfect except the email settings.

it is nopt sending email even i configured in config_defaults_inc.php

$g_smtp_host = 'smtp.gmail.com';

can you please guide me..

thanks

Re: Email Configuration Issue

Posted: 05 Apr 2009, 18:25
by Kirill
Whis this parametrs work very well

Code: Select all

	$g_phpMailer_method		= PHPMAILER_METHOD_SMTP;

	/**
	 * This option allows you to use a remote SMTP host.  Must use the phpMailer script
	 * One or more hosts, separated by a semicolon, can be listed.
	 * You can also specify a different port for each host by using this
	 * format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com").
	 * Hosts will be tried in order.
	 * @global string $g_smtp_host
	 */	
	$g_smtp_host			= 'smtp.gmail.com';

	/**
	 * These options allow you to use SMTP Authentication when you use a remote
	 * SMTP host with phpMailer.  If smtp_username is not '' then the username
	 * and password will be used when logging in to the SMTP server.
	 * @global string $g_smtp_username
	 */	
	$g_smtp_username = 'username_with_@gmail.com';

	/**
	 * SMTP Server Authentication password
	 * @global string $g_smtp_password
	 */	
	$g_smtp_password = 'password_for up_accaunt';
	
	/**
	 * This control the connection mode to SMTP server. Can be 'ssl' or '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 = 25;

	/**
	 * It is recommended to use a cronjob or a scheduler task to send emails.
	 * The cronjob should typically run every 5 minutes.  If no cronjob is used,
	 * then user will have to wait for emails to be sent after performing an action
	 * which triggers notifications.  This slows user performance.
	 * @global int $g_email_send_using_cronjob
	 */	
	$g_email_send_using_cronjob = OFF;

Re: Email Configuration Issue

Posted: 15 Apr 2009, 14:11
by kooldude_33
But i think the port number for g mail is '465' and not '25'. Correct me if I'm wrong.