Title: Problem while sending a mail
Last modified: May 28, 2018

---

# Problem while sending a mail

 *  Resolved [netmorix](https://wordpress.org/support/users/netmorix/)
 * (@netmorix)
 * [8 years ago](https://wordpress.org/support/topic/problem-while-sending-a-mail/)
 * The following SMTP-Configuration had been done (data are correct, sending a test
   mail -> an error occurs with the following log)
    (the data for authentification
   are correct) (the site is not live)
 * Why can’t I send emails from WordPress???
 * Versions:
    WordPress: 4.9.6 WordPress MS: Yes PHP: 7.1.17-1+ubuntu16.04.1+deb.
   sury.org+1 WP Mail SMTP: 1.2.5
 * Params:
    Mailer: smtp Constants: No ErrorInfo: SMTP connect() failed. [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)
   Host: smtp.office365.com Port: 587 SMTPSecure: tls SMTPAutoTLS: bool(true) SMTPAuth:
   bool(true)
 * Server:
    OpenSSL: Yes Apache.mod_security: No SMTP Debug: 2018-05-28 14:32:18
   Connection: opening to smtp.office365.com:587, timeout=300, options=array ( )
   2018-05-28 14:32:18 Connection: opened 2018-05-28 14:32:18 SERVER -> CLIENT: 
   220 LO2P265CA0171.outlook.office365.com Microsoft ESMTP MAIL Service ready at
   Mon, 28 May 2018 14:32:18 +0000 2018-05-28 14:32:18 CLIENT -> SERVER: EHLO [http://www.propain-bikes.com](http://www.propain-bikes.com)
   2018-05-28 14:32:18 SERVER -> CLIENT: 250-LO2P265CA0171.outlook.office365.com
   Hello [62.245.172.156] 250-SIZE 157286400 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES
   250-STARTTLS 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250 SMTPUTF8 2018-05-28
   14:32:18 CLIENT -> SERVER: STARTTLS 2018-05-28 14:32:18 SERVER -> CLIENT: 220
   2.0.0 SMTP server ready 2018-05-28 14:32:18 CLIENT -> SERVER: EHLO [http://www.propain-bikes.com](http://www.propain-bikes.com)
   2018-05-28 14:32:18 SERVER -> CLIENT: 250-LO2P265CA0171.outlook.office365.com
   Hello [62.245.172.156] 250-SIZE 157286400 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES
   250-AUTH LOGIN XOAUTH2 250-8BITMIME 250-BINARYMIME 250-CHUNKING 250 SMTPUTF8 
   2018-05-28 14:32:18 CLIENT -> SERVER: AUTH LOGIN 2018-05-28 14:32:18 SERVER -
   > CLIENT: 334 VXNlcm5hbWU6 2018-05-28 14:32:18 CLIENT -> SERVER: aW5mb0Bwcm9wYWluLWJpa2VzLmNvbQ
   == 2018-05-28 14:32:18 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2018-05-28 14:32:18
   CLIENT -> SERVER: TWF0YWxhaHViYTA4MTUh 2018-05-28 14:32:24 SERVER -> CLIENT: 
   535 5.7.3 Authentication unsuccessful [LO2P265CA0171.GBRP265.PROD.OUTLOOK.COM]
   2018-05-28 14:32:24 SMTP ERROR: Password command failed: 535 5.7.3 Authentication
   unsuccessful [LO2P265CA0171.GBRP265.PROD.OUTLOOK.COM] 2018-05-28 14:32:24 SMTP
   Error: Could not authenticate. 2018-05-28 14:32:24 CLIENT -> SERVER: QUIT 2018-
   05-28 14:32:24 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
   2018-05-28 14:32:24 Connection: closed 2018-05-28 14:32:24 SMTP connect() failed.
   [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [ZenBen](https://wordpress.org/support/users/zenben/)
 * (@zenben)
 * [8 years ago](https://wordpress.org/support/topic/problem-while-sending-a-mail/#post-10335875)
 * This is probably because of: “Relaying disallowed”
    I had the same problem, but
   with zoho and not with outlook! I could solve this by logging into Zoho Webmail
   with my SMTP useraccount (wordpress@…) and added the email-address I want to 
   send FROM (hello@…) under the setting “send emails as”. Received a verification
   coder under hello@… , added it under wordpress@… settings, done. Now everything
   works fine. Don’t know if this works the same way for outlook, though.
 * [https://help.zoho.com/portal/zohocorp/community/topic/smtp-error-data-end-command-failed-553-relaying-disallowed-as-admin-2](https://help.zoho.com/portal/zohocorp/community/topic/smtp-error-data-end-command-failed-553-relaying-disallowed-as-admin-2)
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/problem-while-sending-a-mail/#post-10393165)
 * [@netmorix](https://wordpress.org/support/users/netmorix/)
 * For the username, Office365 requires the username in your SMTP configuration 
   to be your full email address, which includes the domain. For example: [your_username@yourOffice365domain.com](https://wordpress.org/support/topic/problem-while-sending-a-mail/your_username@yourOffice365domain.com?output_format=md)
   
   Make sure that you have it like that. [Source](https://confluence.atlassian.com/jirakb/office365-smtp-configuration-receives-authentication-errors-646250764.html).
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/problem-while-sending-a-mail/#post-10393172)
 * Also, please read this thread: [https://github.com/PHPMailer/PHPMailer/issues/1339](https://github.com/PHPMailer/PHPMailer/issues/1339)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem while sending a mail’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/problem-while-sending-a-mail/#post-10393172)
 * Status: resolved