i have followed ???
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
and get error
2016-10-02 14:10:59 Connection: opening to smtp.office365.com:587, timeout=300, options=array (
)
2016-10-02 14:11:09 SMTP ERROR: Failed to connect to server: Connection refused (111)
2016-10-02 14:11:09 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting