【发布时间】:2016-11-15 16:08:00
【问题描述】:
我的 mac 中有带有 mamp pro 的 laravel 5.2。我在本地工作,我尝试向 mailtrap 发送电子邮件但不工作我有这个错误
Maximum function nesting level of '100' reached, aborting!
我的 .env
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=MyuserName
MAIL_PASSWORD=MyPassword
MAIL_ENCRYPTION=null
在我的控制器中
Mail::send('emails.test', ['user' => 'test'], function ($m) {
$m->from('from@example.com', 'Your Application');
$m->to('from@example.com')->subject('Your Reminder!');
});
【问题讨论】:
标签: php laravel email mamp-pro