I was having problems with Mantis being able to send emails using an Office 365 account using SMTP whereas I had other online apps configured and sending emails successfully with the same account. The error being returned was:
Code: Select all
Detail: 5.7.60 SMTP; Client does not have permissions to send as this sender SMTP code: 550
Since I struggled getting Mantis to work with Office 365 I thought I would document the settings you need to make Office 365 work:
Code: Select all
$g_enable_email_notification = ON; #enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username = 'youremail@yourdomain.com'; #replace with your email address used to log into Office 365
$g_smtp_password = '********'; #replace with your email password
$g_from_email = 'youremail@yourdomain.com'; # Office 365 requires this to match the username email address
$g_return_path_email = 'youremail@yourdomain.com'; # Office 365 requires this to match the username email address
Ron