Check Email broken in 1.1.0a3

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
computabloke
Posts: 2
Joined: 25 May 2007, 01:10

Check Email broken in 1.1.0a3

Post by computabloke »

Email is broken in check.php in mantis 1.1.0a3.
It hasn't been updated to use email queues.

After setting up your email configuration as usual in config_inc.php:

Code: Select all

	$g_administrator_email	= 'aaa@bbb';
	$g_webmaster_email	= 'aaa@bbb';
 	$g_from_email			= 'aaa@bbb';
	$g_from_name			= 'Mantis Bug Tracker';
	$g_return_path_email	= 'aaa@bbb';
	$g_enable_email_notification	= ON;
	$g_phpMailer_method		= 2;
	$g_smtp_host			= 'adlex01.elders.com.au';
	$g_smtp_username = '';
	$g_smtp_password = '';
Modify '/admin/check.php':

Where you see the line:

Code: Select all

$result = email_send( config_get_global( 'administrator_email' ), 'Testing PHP mail() function', 'Your PHP mail settings appear to be correctly set.');
Change to the following:

Code: Select all

$t_email_id = email_store( config_get_global( 'administrator_email' ), 'Testing PHP mail() function', 'Your PHP mail settings appear to be correctly set.');
$result = email_send(email_queue_get($t_email_id));
Also note that irrespective of any other config or forum comments, you DONT need to install phpMailer separately nor do any configuration of php.ini (at least when using SMTP). PhpMailer is bundled into Mantis under /core/phpmailer and imported by email_inc.php automatically and will use whichever settings are provided above.
computabloke
Posts: 2
Joined: 25 May 2007, 01:10

Post by computabloke »

I added an official issue for this: http://www.mantisbugtracker.com/bugs/view.php?id=8016
Post Reply