我使用SMTP邮件发送邮件使用Laravel.除了office365邮件设置之外,其他一切都很完美.

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

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,我没有登录权限.

我还创建了一个outlook邮箱id,并测试了此邮箱设置.

任何建议都很好.

推荐答案

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.

Laravel相关问答推荐

在postgres/mysqlс中,我可以定义基于json字段的唯一索引吗?

如何从laravel中的另一个表中获取用户名

spatie 包 laravel-tags 在迁移中没有 down() 函数是有原因的吗

Laravel where 子句只返回一个数据库条目

Laravel & Docker:无法打开流或文件/var/www/html/storage/logs/laravel.log:无法打开流:权限被拒绝

.gitignore 不忽略文件夹

Laravel 4 的 Cron 作业(job)

找不到列:1054字段列表中的未知列0-Laravel-我的代码中的任何地方都没有0列

Laravel 将参数从路由传递到过滤器

Laravel 5.1 重命名项目

在 Laravel Eloquent 中,limit 与 take 有什么区别?

升级到 Laravel 5.2 会使所有会话失效

加载模型的所有关系

无法打开流:没有这样的文件或目录(Laravel)

Laravel 的 toSql() 方法是否会屏蔽 id? (列值被问号替换)

Elastic search全文与mysql全文?

在 laravel 的测试套件中只运行一个单元测试

Laravel 手动登录功能

在 laravel Passport 客户端应用程序中使用访问令牌获取用户数据

如何使用 Postman 处理 Laravel $_POST 请求