I'm trying to use an O365 account for notification but it doesn't work. I
haven touched my php.ini yet because I'm configuring config-itop.php file.
What I have there is:
The test page fails and if I test by creating a change which triggers an
email notification it nevers arrives. On the log I see:
IssueLog
2021-05-05 23:33:40 | Warning | Email sending failed: Some recipients were
invalid, aFailedRecipients contains: xxxxxx@xxxxxx | IssueLog
2021-05-06 00:05:08 | Warning | Email sending failed: Some recipients were
invalid, aFailedRecipients contains: xxxxxx@xxxxxx | IssueLog
2021-05-06 00:05:44 | Warning | Email sending failed: Some recipients were
invalid, aFailedRecipients contains: xxxxxx@xxxxxx | IssueLog
2021-05-05 17:30:53 | Warning | Email sending failed: Some recipients were
invalid, aFailedRecipients contains: xxxxxx@xxxxxx | IssueLog
All are valid and tested email addresses. In fact, the email address Im
using in the one that I usefor notifications in other platform (zabbix)
where it works perfectly.
Thanks for you replay Jeffrey, basically I have a trigger which sends an email when a new Change was created. It used to work fine with my old Exchange on premise, but it no longer exists and now we have all our email accounts in O365.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Briac, your're the one!! The email transport was the trick. Now my notificacions using an O365 account work like a charm. For those who may need this in the future, that's my final config:
// email_default_sender_address: Default address provided in the email from header field.
// default: ''
'email_default_sender_address' => 'XXXXXXX@XXXXXXXX',
// email_default_sender_label: Default label provided in the email from header field.// default: '''email_default_sender_label'=>'WHATYOUWANTTOSEE',// email_transport: Mean to send emails: PHPMail (uses the function mail()) or SMTP (implements the client protocol)// default: 'PHPMail''email_transport'=>'SMTP','email_transport_smtp.encryption'=>'tls','email_transport_smtp.host'=>'smtp.office365.com','email_transport_smtp.password'=>'xxxxxxxxx','email_transport_smtp.port'=>'587','email_transport_smtp.username'=>'xxxxxxxxxxxx',
Then just restart IIS and enjoy
Thanks a million.
Eduardo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi iTop guys,
I'm trying to use an O365 account for notification but it doesn't work. I
haven touched my php.ini yet because I'm configuring config-itop.php file.
What I have there is:
'email_transport' => 'PHPMail',
'email_transport_smtp.encryption' => 'tls',
'email_transport_smtp.host' => 'smtp.office365.com',
'email_transport_smtp.password' => 'xxxxxxxx',
'email_transport_smtp.port' => '587',
'email_transport_smtp.username' => 'xxxxxx@xxxxxxx',
The test page fails and if I test by creating a change which triggers an
email notification it nevers arrives. On the log I see:
IssueLog
2021-05-05 23:33:40 | Warning | Email sending failed: Some recipients were
invalid, aFailedRecipients contains: xxxxxx@xxxxxx | IssueLog
2021-05-06 00:05:08 | Warning | Email sending failed: Some recipients were
invalid, aFailedRecipients contains: xxxxxx@xxxxxx | IssueLog
2021-05-06 00:05:44 | Warning | Email sending failed: Some recipients were
invalid, aFailedRecipients contains: xxxxxx@xxxxxx | IssueLog
2021-05-05 17:30:53 | Warning | Email sending failed: Some recipients were
invalid, aFailedRecipients contains: xxxxxx@xxxxxx | IssueLog
All are valid and tested email addresses. In fact, the email address Im
using in the one that I usefor notifications in other platform (zabbix)
where it works perfectly.
Any ideas?
Eduardo from Colombia
Hi guys, appreciate your help
What kind of email notifications are being sent?
If on a ticket, you can click the notifications tab and see the details
Thanks for you replay Jeffrey, basically I have a trigger which sends an email when a new Change was created. It used to work fine with my old Exchange on premise, but it no longer exists and now we have all our email accounts in O365.
Can you show how you configured the notifications?
Dear Jeffrey, what I have in the config-itop.php file is.
'email_transport' => 'PHPMail',
'email_transport_smtp.encryption' => 'tls',
'email_transport_smtp.host' => 'smtp.office365.com',
'email_transport_smtp.password' => 'xxxxxxxx',
'email_transport_smtp.port' => '587',
'email_transport_smtp.username' => 'xxxxxx@xxxxxxx',
Thanks for your help
Jefferey,
Mine is exactly like yours EXCEPT this line:
'email_transport' => 'smtp'
Works like a champ for me....
Briac, your're the one!! The email transport was the trick. Now my notificacions using an O365 account work like a charm. For those who may need this in the future, that's my final config:
// email_default_sender_address: Default address provided in the email from header field.
// default: ''
'email_default_sender_address' => 'XXXXXXX@XXXXXXXX',
Then just restart IIS and enjoy
Thanks a million.
Eduardo
Thanks for sharing this !