Hi Amanda,
I find the issue you encounter is that you can send emails via the Powershell and VB Script you provide above before your account migrated from Exchange on-premise to Exchange Online.
Incorrect. The scripts above refer to Office 365 SMTP servers. Please ignore hte fact that these ever worked or that we migrated. I want these scripts to send email via Office 365 SMTP servers.
And you send emails between users in same Office 365 organization via Direct Send.
No. I cannot send via direct send - that is why I have made my post.
The symptom about you cannot send emails is that there will be an error occurs like: Send-MailMessage : Mailbox unavailable. The server response was: 5.7.51…
Correct
If yes, from the error report, I find that the error might be caused by the sender has no permission to send emails, I would like to confirm the following information for troubleshooting:
1. Are you send emails via Send As permission?
2. The detailed email addresses of the sender and recipient.
I am not trying to send from a user. I am trying to implement the Direct Send as described in the MS article linked above, and again below:
How
to set up a multifunction device or APPLICATION to send email using Office 365
According to the article I will not need credentials, and will only be able to send within my domain.
As described above I get the same error message with different sender addresses.
It is getting quite frustrating repeating the same information only to have it ignored by different moderators each time. Please read the post and then reply.
Regards,
Rhys