SendAsDenied error when sends an email using Office365

category:  Web development, WordPress

Recently I work with one of my client WordPress websites that uses the Microsoft Office365 as mail sending. I already configured the mail sending in WordPress. Everything seems correct. However, I check the PHP error log and I found the error message says: Cause The Microsoft Office365 SMTP server is rejecting the set “From” address. Solution The email account that you set in the mail configuration, must present in “From” field of the outgoing emails. For example, you use your … Read More