think-mailer | 一个优美的php邮件类tp-mailer,支持邮件模板、纯文本、附件邮件发送以及更多邮件功能,
kandi X-RAY | think-mailer Summary
kandi X-RAY | think-mailer Summary
think-mailer is a PHP library. think-mailer has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
基于 SwiftMailer 二次开发, 为 ThinkPHP系列框架量身定制, 使 ThinkPHP 支持邮件模板、纯文本、附件邮件发送以及更多邮件功能, 邮件发送简单到只需一行代码. 同时了方便其他框架或者非框架使用, think-mailer也非常容易拓展融合到其他框架中, 欢迎大家 Fork 和 Star, 提交代码让think-mailer支持更多框架.
基于 SwiftMailer 二次开发, 为 ThinkPHP系列框架量身定制, 使 ThinkPHP 支持邮件模板、纯文本、附件邮件发送以及更多邮件功能, 邮件发送简单到只需一行代码. 同时了方便其他框架或者非框架使用, think-mailer也非常容易拓展融合到其他框架中, 欢迎大家 Fork 和 Star, 提交代码让think-mailer支持更多框架.
Support
Quality
Security
License
Reuse
Support
think-mailer has a low active ecosystem.
It has 35 star(s) with 4 fork(s). There are 5 watchers for this library.
It had no major release in the last 12 months.
There are 4 open issues and 0 have been closed. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of think-mailer is v1.0.3
Quality
think-mailer has 0 bugs and 0 code smells.
Security
think-mailer has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
think-mailer code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
think-mailer is licensed under the Apache-2.0 License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
think-mailer releases are available to install and integrate.
Installation instructions are not available. Examples and code snippets are available.
think-mailer saves you 218 person hours of effort in developing the same functionality from scratch.
It has 534 lines of code, 45 functions and 16 files.
It has medium code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed think-mailer and discovered the below as its top functions. This is intended to give you an instant insight into think-mailer implemented functionality, and help decide if they suit your requirements.
- send message
- Get driver name
- Embed an image
- Create a new SMTP driver
- Attach an attachment to the message
- Detect mail class
- Get config value
- Write message to mailer
- Initialize class .
- Create a new sendmailer driver
Get all kandi verified functions for this library.
think-mailer Key Features
No Key Features are available at this moment for think-mailer.
think-mailer Examples and Code Snippets
Copy
$mailer->send();
$mailer->send(function ($mailer, $message) {
$mailer->to('10086@qq.com')
->line('你好')
->line('这是一封测试邮件')
->subject('测试邮件');
});
$mailer->send(
function ($mailer, $message) {
Copy
use mailer\tp6\Mailer;
$mailer = Mailer::instance();
$mailer->from('10086@qq.com@qq.com', 'cattong')
->to('your-mail@domain.com')
->subject('纯文本测试')
->text('欢迎您使用think-mailer')
->send();
use mailer\tp51\Mailer;
$mail
Copy
use mailer\lib\Config
use mailer\lib\Mailer
// 第一步:初始化配置项
// 配置格式参见前面的配置
$config = [
'driver' => 'smtp',
'host' => 'smtp.qq.com',
...
];
Config::init($config);
// 第二步:注册view方法
Mailer::addMethod('view', function ($template,
Community Discussions
No Community Discussions are available at this moment for think-mailer.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install think-mailer
You can download it from GitHub.
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page