When I try and use this module with Mail System and PHP Mailer and Office 365 I get the following error.

The configuration options have been saved.
2023-07-06 20:58:45 Connection: opening to ssl://smtp.office365.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => 1, 'verify_peer_name' => 1, 'allow_self_signed' => 0, ),)
2023-07-06 20:58:57 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.office365.com:587 (Connection refused) [/public_html/sites/all/libraries/phpmailer/class.smtp.php line 298]
2023-07-06 20:58:57 SMTP ERROR: Failed to connect to server: Connection refused (111)

Has anyone been able to make this module work with Office 365 and OAuth? I have also tried the SMTP module but no luck getting that to work either. Can't seem to get it to authenticate with Office 365.

Comments

ryanfc78 created an issue. See original summary.

astonvictor’s picture

Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.