All Projects → Yurunsoft → PHPMailer-Swoole

Yurunsoft / PHPMailer-Swoole

Licence: LGPL-2.1 License
安装最新版Swoole,开启一键协程化,使用原版phpmailer就可以实现协程化了。本项目已经没有维护下去的意义。

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to PHPMailer-Swoole

Yii2 Swoole
full solutions making yii2-framework run on swoole with coroutine.
Stars: ✭ 86 (+244%)
Mutual labels:  swoole, coroutine
swoole-postgresql-doctrine-driver
🔌 A Doctrine DBAL Driver implementation on top of Swoole Coroutine PostgreSQL client
Stars: ✭ 15 (-40%)
Mutual labels:  swoole, coroutine
Mix
☄️ PHP CLI mode development framework, supports Swoole, WorkerMan, FPM, CLI-Server / PHP 命令行模式开发框架,支持 Swoole、WorkerMan、FPM、CLI-Server
Stars: ✭ 1,753 (+6912%)
Mutual labels:  swoole, coroutine
Swoft Framework
[READ ONLY] Swoft Framework, base of Swoft
Stars: ✭ 70 (+180%)
Mutual labels:  swoole, coroutine
Hyperf Skeleton
🛠 A skeleton of Hyperf framework that provided by official team
Stars: ✭ 162 (+548%)
Mutual labels:  swoole, coroutine
Php Coroutine Engine
This project for php-fpm support coroutine
Stars: ✭ 74 (+196%)
Mutual labels:  swoole, coroutine
Swoole Docker
See: https://github.com/swoole/docker-swoole
Stars: ✭ 132 (+428%)
Mutual labels:  swoole, coroutine
Paysdk
PHP 集成支付 SDK ,集成了支付宝、微信支付的支付接口和其它相关接口的操作。支持 php-fpm 和 Swoole,所有框架通用。宇润PHP全家桶技术支持群:17916227
Stars: ✭ 723 (+2792%)
Mutual labels:  swoole, coroutine
Yii2 Swoole
make yii2 project runing on swoole
Stars: ✭ 161 (+544%)
Mutual labels:  swoole, coroutine
Guzzle Swoole
让基于 Guzzle 的项目完美无缝兼容 Swoole 协程,支持:Guzzle、Elasticsearch client——来自宇润 PHP 全家桶
Stars: ✭ 143 (+472%)
Mutual labels:  swoole, coroutine
Swpdo
Swoole Coroutine SQL component like PDO | 0成本迁移PDO到Swoole高性能协程客户端
Stars: ✭ 64 (+156%)
Mutual labels:  swoole, coroutine
ext-postgresql
🐘 Coroutine-based client for PostgreSQL
Stars: ✭ 62 (+148%)
Mutual labels:  swoole, coroutine
Saber
⚔️ Saber, PHP异步协程HTTP客户端 | PHP Coroutine HTTP client - Swoole Humanization Library
Stars: ✭ 866 (+3364%)
Mutual labels:  swoole, coroutine
Ycsocket
基于swoole的socket框架,支持协程版MySQL、Redis连接池,已用于大型RPG游戏服务端
Stars: ✭ 77 (+208%)
Mutual labels:  swoole, coroutine
Swoft Db
[READ ONLY] Database Compoment for Swoft
Stars: ✭ 25 (+0%)
Mutual labels:  swoole, coroutine
Archer
基于协程Swoole的Task组件,支持多种模式。轻松实现协程Task的队列、并发、Defer、计时器等 | Swoole coroutine task kit - Swoole Humanization Library
Stars: ✭ 132 (+428%)
Mutual labels:  swoole, coroutine
Swoft
🚀 PHP Microservice Full Coroutine Framework
Stars: ✭ 5,420 (+21580%)
Mutual labels:  swoole, coroutine
Imi
imi 是基于 Swoole 的 PHP 协程开发框架,它支持 Http、Http2、WebSocket、TCP、UDP、MQTT 等主流协议的服务开发,特别适合互联网微服务、即时通讯聊天im、物联网等场景!。QQ群:17916227
Stars: ✭ 680 (+2620%)
Mutual labels:  swoole, coroutine
Aint Queue
🚀 An async-queue library built on top of swoole, flexable multi-consumer, coroutine supported. 基于 Swoole 的一个异步队列库,可弹性伸缩的工作进程池,工作进程协程支持。
Stars: ✭ 143 (+472%)
Mutual labels:  swoole, coroutine
Yurunhttp
YurunHttp 是开源的 PHP HTTP 客户端,支持链式操作,简单易用。完美支持Curl、Swoole 协程。QQ群:17916227
Stars: ✭ 197 (+688%)
Mutual labels:  swoole, coroutine

PHPMailer-Swoole

Latest Version Php Version Swoole Version IMI License

介绍

这是一个适合用于 Swoole 协程环境下的 PHPMailer。

基于 PHPMailer 6.0 实现 PHPMailer 的 Swoole 协程环境支持,本项目未修改 PHPMailer 源码,理论上兼容 PHPMailer 6.0 及后续版本。

只需要使用 Composer 引入了本项目,PHPMailer 将会自动支持协程化,并且只能运行在 Swoole 协程中!

QQ群:17916227 点击加群

使用说明

Composer:"yurunsoft/phpmailer-swoole":"~1.0"

使用方式和 PHPMailer 并无两样,唯一需要注意的是只支持在 Swoole 协程下运行。

go(function(){
	$mail = new PHPMailer; //PHPMailer对象
	$mail->CharSet = 'UTF-8'; //设定邮件编码,默认ISO-8859-1,如果发中文此项必须设置,否则乱码
	$mail->IsSMTP(); // 设定使用SMTP服务
	$mail->SMTPDebug = 0; // 关闭SMTP调试功能
	$mail->SMTPAuth = true; // 启用 SMTP 验证功能
	$mail->SMTPSecure = 'ssl'; // 使用安全协议
	$mail->Host = 'smtp.163.com'; // SMTP 服务器
	$mail->Port = '994'; // SMTP服务器的端口号
	$mail->Username = ''; // SMTP服务器用户名
	$mail->Password = ''; // SMTP服务器密码
	$mail->SetFrom('', ''); // 邮箱,昵称
	$mail->Subject = 'title test';
	$mail->MsgHTML('hello world');
	$mail->AddAddress(''); // 收件人
	$result = $mail->Send();
	if($result)
	{
		var_dump('ok');
	}
	else
	{
		$result = $error = $mail->ErrorInfo;
		var_dump($result);
	}
});

更加详细的示例代码请看test目录下代码。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].