Greatly appreciate all the help so far.
I believe I have made it past the
SMTP connection/authentication error but I am running into some Send-As errors it seems. I wound up migrating away from GoDaddy/BlueHost to NameCheap as they are much more responsive and easier to use. They opened port 587 for me without a huge argument like I had with BlueHost...
Anyways...
I feel like I am not fully understanding this no-reply and
domain section...
Why is it trying to use a "university.ACME.com" to send my email? Can this be corrected?
I am starting to see a lot of posts that Send-As through PHP SMTP on Office365 basically doesnt work...
I have an SPF record for both university.ACME.com and ACME.com that include the IP address of my NameCheap shared hosting
Here is the full error message with a little bit of identity scrubbing on it.
2020-01-01 21:08:29 Connection: opening to smtp.office365.com:587, timeout=300, options=array()
2020-01-01 21:08:30 Connection: opened
2020-01-01 21:08:30 SERVER -> CLIENT: 220 BYAPR08CA0028.outlook.office365.com Microsoft ESMTP MAIL Service ready at Wed, 1 Jan 2020 21:08:29 +0000
2020-01-01 21:08:30 CLIENT -> SERVER: EHLO university.ACME.com (
changed)2020-01-01 21:08:30 SERVER -> CLIENT: 250-BYAPR08CA0028.outlook.office365.com Hello [MY.WEB.HOST.IP]
(changed) 250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
2020-01-01 21:08:30 CLIENT -> SERVER: STARTTLS
2020-01-01 21:08:30 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2020-01-01 21:08:30 CLIENT -> SERVER: EHLO university.ACME.com
(changed)2020-01-01 21:08:30 SERVER -> CLIENT: 250-BYAPR08CA0028.outlook.office365.com Hello [MY.WEEB.HOST.IP]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
2020-01-01 21:08:30 CLIENT -> SERVER: AUTH LOGIN
2020-01-01 21:08:30 SERVER -> CLIENT: 334
2020-01-01 21:08:30 CLIENT -> SERVER:
2020-01-01 21:08:30 SERVER -> CLIENT: 334
2020-01-01 21:08:30 CLIENT -> SERVER:
2020-01-01 21:08:31 SERVER -> CLIENT: 235 2.7.0 Authentication successful
2020-01-01 21:08:31 CLIENT -> SERVER: MAIL FROM:
2020-01-01 21:08:31 SERVER -> CLIENT: 250 2.1.0 Sender OK
2020-01-01 21:08:31 CLIENT -> SERVER: RCPT TO:
2020-01-01 21:08:31 SERVER -> CLIENT: 250 2.1.5 Recipient OK
2020-01-01 21:08:31 CLIENT -> SERVER: DATA
2020-01-01 21:08:32 SERVER -> CLIENT: 354 Start mail input; end with .
2020-01-01 21:08:32 CLIENT -> SERVER: Date: Wed, 1 Jan 2020 16:08:29 -0500
2020-01-01 21:08:32 CLIENT -> SERVER: To: ME@ACME.com
(changed)2020-01-01 21:08:32 CLIENT -> SERVER: From: "System Administrator"
2020-01-01 21:08:32 CLIENT -> SERVER: Reply-To: "System Administrator"
2020-01-01 21:08:32 CLIENT -> SERVER: Subject: ACME University ACME University: test message
2020-01-01 21:08:32 CLIENT -> SERVER: Message-ID: <5e0d0a4de5a8c0.64424587@university.ACME.com>
2020-01-01 21:08:32 CLIENT -> SERVER: X-Mailer: PHPMailer 6.0.7 (
https://github.com/PHPMailer/PHPMailer)
2020-01-01 21:08:32 CLIENT -> SERVER: MIME-Version: 1.0
2020-01-01 21:08:32 CLIENT -> SERVER: Content-Type: text/plain; charset=UTF-8
2020-01-01 21:08:32 CLIENT -> SERVER:
2020-01-01 21:08:32 CLIENT -> SERVER:
2020-01-01 21:08:32 CLIENT -> SERVER: This is a test message to confirm that you have successfully configured
2020-01-01 21:08:32 CLIENT -> SERVER: your site's outgoing mail.
2020-01-01 21:08:32 CLIENT -> SERVER:
2020-01-01 21:08:32 CLIENT -> SERVER: .
2020-01-01 21:08:32 SERVER -> CLIENT: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:0A000D85, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:55210000, 1.36674:0E000000, 1.61250:00000000, 1.45378:5A210000, 1.44866:0A020000, 16.55847:3E100000, 17.43559:0000000004020000000000000000000000000000, 20.52176:140F2A8A0A00101043050000, 20.50032:140F2A8A7A17000000000000, 0.35180:48050000, 255.23226:0A00
2020-01-01 21:08:32 SMTP ERROR: DATA END command failed: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:0A000D85, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:55210000, 1.36674:0E000000, 1.61250:00000000, 1.45378:5A210000, 1.44866:0A020000, 16.55847:3E100000, 17.43559:0000000004020000000000000000000000000000, 20.52176:140F2A8A0A00101043050000, 20.50032:140F2A8A7A17000000000000, 0.35180:48050000, 255.23226:0A00
2020-01-01 21:08:32 SMTP Error: data not accepted.