I am using SMTP mail for sending mail using Laravel. Everything working perfect other than office365 mail settings.
Settings I have used is as below:
SMTP HOST = smtp.office365.com SMTP PORT = 587 SMTP ENCRYPTION = tls SMTP USER = username(email) SMTP PASS = password
Error i am getting is:
554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message
I have already searched google a lot for this error everybody says about clutter like this link Solution to this error But I personally don't find any clutter after followed all the steps mentioned.
I cannot log in this email as it's our client email id and I don't have permission to log in.
I also created one outlook email id and test this email setting. It worked like charm. I don't know what is wrong with Client email id.
Any suggestions would be great.
Close out of the Outlook app completely and then re-open it. Sign out of the email account and then sign back in again to re-authenticate with Duo. Check your Internet connection, which may include checking your WiFi connection and/or your cellphone's network provider. Check your recycle bin or deleted inbox.
Outlook doesn't provide to send using different from address other than your username to log in.
You need both email address same.
You can add one or more sender in your admin panel after that you can send easily from different addresses.
This error means the user whose credentials you specified in the SMTP connection cannot submit messages on behalf of the user specified in the From
and/or Sender
MIME headers or the FROM
SMTP command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With