Home > Backend Development > PHP Tutorial > laravel5怎么判断邮件发送成功?

laravel5怎么判断邮件发送成功?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:26:09
Original
2710 people have browsed it

这个怎么判断是否发送成功了?

<code>\Mail::raw('Text to e-mail', function($message)
{
    $message->from('from@163.com', '163');
    $message->to('test@qq.com')->subject('Welcome!');
});</code>
Copy after login
Copy after login

回复内容:

这个怎么判断是否发送成功了?

<code>\Mail::raw('Text to e-mail', function($message)
{
    $message->from('from@163.com', '163');
    $message->to('test@qq.com')->subject('Welcome!');
});</code>
Copy after login
Copy after login

默认有返回值的。根据返回值判断发送状态。

建议用第三方邮件服务吧, mailgun, sendcloud 都可以,邮件到达率高 而且发送日志全面。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Composer cannot install laravel
From 1970-01-01 08:00:00
0
0
0
Laravel Space/laravel-backup cannot be installed
From 1970-01-01 08:00:00
0
0
0
Laravel 5.1 Login laravel comes with it No more
From 1970-01-01 08:00:00
0
0
0
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template