Configure Plugin to Office365
Posted: 30 Mar 2016, 16:11
Hi, I have a problem with this plugin configuration to connect to a Office 365. I have tried several options but none works. We have configured Mantis to send mails with office 365 but i cant configure this.
Im running a XAMPP compilation with Mantis version 1.2.17 and EmailReporting plugin version 0.9.
Can anyone help me??
This is the result of execute the report mail task
D:\xampp\php>D:\xampp\php\php.exe D:\xampp\htdocs\mantis\plugins\EmailReporting\scripts\bug_report_mail.php
Start checking all mailboxes: Wednesday 30th of March 2016 17:17:56
array(14) {
["enabled"]=>
int(1)
["description"]=>
string(9) "SAT Account"
["mailbox_type"]=>
string(4) "IMAP"
["hostname"]=>
string(18) "smtp.office365.com"
["port"]=>
int(587)
["encryption"]=>
string(4) "None"
["ssl_cert_verify"]=>
int(0)
["erp_username"]=>
string(21) "sat@company.com"
["erp_password"]=>
string(12) "encripted_pass"
["auth_method"]=>
string(4) "USER"
["project_id"]=>
int(3)
["global_category_id"]=>
int(2)
["imap_basefolder"]=>
string(11) "AUTO_MANTIS"
["imap_createfolderstructure"]=>
int(0)
}
<p style="color:red">SYSTEM WARNING: 'Invalid argument supplied for foreach()' i
n 'D:\xampp\htdocs\mantis\plugins\EmailReporting\core_pear\Net\IMAPProtocol.php'
line 1006</p><p style="color:red">SYSTEM WARNING: 'Invalid argument supplied fo
r foreach()' in 'D:\xampp\htdocs\mantis\plugins\EmailReporting\core_pear\Net\IMA
PProtocol.php' line 1006</p><p style="color:red">SYSTEM WARNING: 'Invalid argume
nt supplied for foreach()' in 'D:\xampp\htdocs\mantis\plugins\EmailReporting\cor
e_pear\Net\IMAPProtocol.php' line 1006</p>
Mailbox: SAT Account
Location: Attempt login
[pear_error: message=", " code=0 mode=return level=notice prefix="" info=""]
Done checking all mailboxes
This is our mail configuration in config.inc.php
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_username = 'sat@company.com';
$g_smtp_password = 'password';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 25;
$g_from_email = 'mailbox@company.com';
$g_from_name = 'Bug Tracker';
$g_return_path_email = 'mailbox@company.com';
Im running a XAMPP compilation with Mantis version 1.2.17 and EmailReporting plugin version 0.9.
Can anyone help me??
This is the result of execute the report mail task
D:\xampp\php>D:\xampp\php\php.exe D:\xampp\htdocs\mantis\plugins\EmailReporting\scripts\bug_report_mail.php
Start checking all mailboxes: Wednesday 30th of March 2016 17:17:56
array(14) {
["enabled"]=>
int(1)
["description"]=>
string(9) "SAT Account"
["mailbox_type"]=>
string(4) "IMAP"
["hostname"]=>
string(18) "smtp.office365.com"
["port"]=>
int(587)
["encryption"]=>
string(4) "None"
["ssl_cert_verify"]=>
int(0)
["erp_username"]=>
string(21) "sat@company.com"
["erp_password"]=>
string(12) "encripted_pass"
["auth_method"]=>
string(4) "USER"
["project_id"]=>
int(3)
["global_category_id"]=>
int(2)
["imap_basefolder"]=>
string(11) "AUTO_MANTIS"
["imap_createfolderstructure"]=>
int(0)
}
<p style="color:red">SYSTEM WARNING: 'Invalid argument supplied for foreach()' i
n 'D:\xampp\htdocs\mantis\plugins\EmailReporting\core_pear\Net\IMAPProtocol.php'
line 1006</p><p style="color:red">SYSTEM WARNING: 'Invalid argument supplied fo
r foreach()' in 'D:\xampp\htdocs\mantis\plugins\EmailReporting\core_pear\Net\IMA
PProtocol.php' line 1006</p><p style="color:red">SYSTEM WARNING: 'Invalid argume
nt supplied for foreach()' in 'D:\xampp\htdocs\mantis\plugins\EmailReporting\cor
e_pear\Net\IMAPProtocol.php' line 1006</p>
Mailbox: SAT Account
Location: Attempt login
[pear_error: message=", " code=0 mode=return level=notice prefix="" info=""]
Done checking all mailboxes
This is our mail configuration in config.inc.php
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_username = 'sat@company.com';
$g_smtp_password = 'password';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 25;
$g_from_email = 'mailbox@company.com';
$g_from_name = 'Bug Tracker';
$g_return_path_email = 'mailbox@company.com';