SLIM フレームワークを使用して REST API を設計しています。PHPでメールを送信したい。
メールを非常に正確に送信する mailing.php を作成しました。
しかし、スリムフレームワークのREST APIからそのmailing.phpを呼び出すたびに。次に、この次のエラーが発生します。
Slim Application Error
The application could not run because of the following error:
Details:
Message: Assigning the return value of new by reference is deprecated
File: C:\xampp\php\PEAR\Mail.php
Line: 154
Stack Trace:
#0 C:\xampp\htdocs\CC\mailing.php(2): Slim::handleErrors(8192, 'Assigning the r...', 'C:\xampp\php\PE...', 154, Array)
#1 C:\xampp\htdocs\CC\mailing.php(2): require_once()
#2 C:\xampp\htdocs\CC\waist.php(2): include('C:\xampp\htdocs...')
#3 C:\xampp\htdocs\CC\testingnew.php(545): include('C:\xampp\htdocs...')
#4 [internal function]: {closure}()
#5 C:\xampp\htdocs\CC\Slim\Route.php(392): call_user_func_array(Object(Closure), Array)
#6 C:\xampp\htdocs\CC\Slim\Slim.php(1051): Slim_Route->dispatch()
#7 C:\xampp\htdocs\CC\testingnew.php(771): Slim->run()
#8 {main}
このエラーを取り除くにはどうすればよいか教えてください。ご不明な点がございましたら、お気軽にお問い合わせください。私は本当にあなたの助けが必要です。
前もって感謝します。