firecms-ext / mail
hyperf 扩展:邮箱
dev-master
2022-11-11 02:52 UTC
Requires
- php: >=8.0
- hyperf/async-queue: ~2.2.0
- hyperf/command: ~2.2.0
- hyperf/config: ~2.2.0
- hyperf/devtool: ~2.2.0
- hyperf/di: ~2.2.0
- hyperf/event: ^2.2
- hyperf/filesystem: ~2.2.0
- hyperf/framework: ~2.2.0
- hyperf/translation: ~2.2.0
- symfony/mailer: ^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: >=7.0
- swoole/ide-helper: ^4.5
Suggests
- swow/swow: Required to create swow components.
This package is auto-updated.
Last update: 2024-11-11 07:18:06 UTC
README
# 依赖安装 composer require firecms-ext/mail # 发布配置 php bin/hyperf.php vendor:publish firecms-ext/mail # 生成邮件 php bin/hyperf.php gen:mail MessageMail # 队列配置 php bin/hyperf.php vendor:publish hyperf/async-queue
调用方法
FirecmsExt\Mail\Mail::to(mixed $users): PendingMail; FirecmsExt\Mail\Mail::cc(mixed $users): PendingMail; FirecmsExt\Mail\Mail::bcc(mixed $users): PendingMail; FirecmsExt\Mail\Mail::later(MailableInterface $mailable, int $delay, ?string $queue = null): bool; FirecmsExt\Mail\Mail::queue(MailableInterface $mailable, ?string $queue = null): bool; FirecmsExt\Mail\Mail::send(MailableInterface $mailable): null|int;