【发布时间】:2017-04-09 03:55:00
【问题描述】:
每当我尝试使用 lumen 发送邮件时,我都会收到此错误(等待后): 超过 30 秒的最长执行时间。
每当我尝试执行时都会弹出这个奇怪的错误
$mailer = app()->make('mailer');
$mailer->send('template', [] , function ($message) use ($file) {
$message->from('test@example.com', 'test');
$message->to('test@example.com');
// $message->attach($file, ['mime' => 'pdf']); <-- problem
});
但是,此代码按预期工作。 每当我取消注释 $message->attach 行时,页面将不再加载。
不,PDF 不是特别少,我无法跟踪问题... 有人有想法吗?
【问题讨论】: