系统可以发送邮件(来自Laravel),但是php artisan
(使用php cli)会导致错误,并且不发送邮件。
为清楚起见,我使用的是sync
数据库驱动程序。
来自php artisan tinker
:
> Mail::queue('emails.test', [], function($message) { $message->to({email})->subject('Test'); });
错误:
PHP Warning: file_get_contents(/home/{user}/{project}/releases/20190425
154529/vendor/d11wtq/boris/lib/Boris/EvalWorker.php(152) : eval()'d code): failed to open stream: No such
file or directory in /home/{user}/{project}/releases/20190425154529/ven
dor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/ClosureParser.php on line 190
PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The closure was not found within the abstract syntax tree.' in /home/{user}/{project}/releases/2019
0425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/ClosureParser.php:119
Stack trace:
#0 /home/{user}/{project}/releases/20190425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/ClosureParser.php(172): Jeremeamia\SuperClosure\ClosureParser->getClosureAbstractSyntaxTree()
#1 /home/{user}/{project}/releases/20190425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/SerializableClosure.php(108): Jeremeamia\SuperClosure\ClosureParser->getCode()
#2 /home/{user}/{project}/releases/20190425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/SerializableClosure.php(75): Jeremeamia\SuperClosure\SerializableClosure->createState()
#3 [internal function]: Jeremeamia\Super in /home/{user}/{project}/releases/20190425154529/vendor/jeremeamia/SuperClosure/src/Jeremeamia/SuperClosure/ClosureParser.php on line 119
我已经用{obfuscation}
弄乱了我的路径(很清楚)。
非常感谢您的帮助。