We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
根据文档将 tp-mailer 和 swiftmailer 文件夹复制到 extend 目录中,目录结构如下:
extend ├── tp-mailer │ └── src ├── swiftmailer │ ├── lib │ ├── doc │ └── tests
在模型中引用 use mailer\tp5\Mailer;
use mailer\tp5\Mailer;
在方法中调用
$mailer = Mailer::instance(); $ret['mailer'] = $mailer->from('***@***.***','***') ->to($strEmail) ->subject($subject) ->html($html) ->send();
报错如下:
Class 'mailer\tp5\Mailer' not found
报错位置:
$mailer = Mailer::instance();
求解决方案,谢谢!
The text was updated successfully, but these errors were encountered:
我也遇到这个问题了!!怎么回事
Sorry, something went wrong.
我写成这样了 $mailer=\mailer\tp5\Mailer::instance(); 还会提示:致命错误: Class 'mailer\tp5\Mailer' not found
No branches or pull requests
根据文档将 tp-mailer 和 swiftmailer 文件夹复制到 extend 目录中,目录结构如下:
在模型中引用
use mailer\tp5\Mailer;
在方法中调用
报错如下:
报错位置:
求解决方案,谢谢!
The text was updated successfully, but these errors were encountered: