Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to send SMTP mails using office365 settings

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.

like image 994
Milind Patel Avatar asked Feb 20 '19 10:02

Milind Patel


People also ask

Why is Outlook 365 not sending my emails?

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.


2 Answers

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.

like image 117
Milind Patel Avatar answered Oct 09 '22 20:10

Milind Patel


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.

like image 27
Dmitry Streblechenko Avatar answered Oct 09 '22 19:10

Dmitry Streblechenko