To get a WordPress website to be able to email through Office 365 use the WP-EMAIL-SMTP plugin and use the following settings.
SMTP Host: smtp.office365.com
Type of Encryption: TLS
SMTP Port: 587
Use Authentication: YES
Username: (the email address you are sending from)
Password: email accounts password
Link to the plugin: wp-mail-smtp