无法使用Office365设置发送SMTP邮件 [英] Unable to send SMTP mails using office365 settings

查看:1356
本文介绍了无法使用Office365设置发送SMTP邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SMTP邮件通过Laravel发送邮件.除了office365邮件设置之外,其他所有功能都可以正常运行.

I am using SMTP mail for sending mail using Laravel. Everything working perfect other than office365 mail settings.

我使用的设置如下:

SMTP HOST = smtp.office365.com
SMTP PORT = 587
SMTP ENCRYPTION = tls
SMTP USER = username(email)
SMTP PASS = password

我遇到的错误是:

554 5.2.0STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied;由于出现消息的永久异常,因此无法处理消息无法提交消息

554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message

我已经为这个错误在Google上进行了很多搜索,每个人都这样说到有关混乱的信息解决方案错误但是,按照上述所有步骤操作之后,我个人没有发现任何混乱.

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.

我无法登录此电子邮件,因为这是我们的客户电子邮件ID,并且我没有登录权限.

I cannot log in this email as it's our client email id and I don't have permission to log in.

我还创建了一个Outlook电子邮件ID并测试此电子邮件设置.它像魅力一样运作.我不知道客户电子邮件ID有什么问题.

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.

任何建议都会很棒.

推荐答案

Outlook不提供使用不同于用户名登录的地址进行发送.

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.

这篇关于无法使用Office365设置发送SMTP邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆