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
$mailer = Mailer::instance(function() { return \Swift_SmtpTransport::newInstance( 'smtp.qq.com', 465, 'ssl' ) ->setUsername('username') ->setPassword('password'); });
读取的不是自定义配置,最终还是读取config/mail.php里的
The text was updated successfully, but these errors were encountered:
你可以这样子: \mailer\lib\Config::init($mailConfig); $mailer = Mailer::instance(); 进行初始化;
Sorry, something went wrong.
$mailer = Mailer::instance(function() { return \Swift_SmtpTransport::newInstance( 'host', 'port', 'security' ) ->setUsername($config['addr']) ->setPassword($config['pass']); }); 这种方式不可以是吧
No branches or pull requests
读取的不是自定义配置,最终还是读取config/mail.php里的
The text was updated successfully, but these errors were encountered: