metalinspired/laminas-dkim
Composer 安装命令:
composer require metalinspired/laminas-dkim
包简介
DKIM Signer for Laminas Mail
README 文档
README
Laminas Project DKIM Signer.
Note
Based on joepsyko/zf-dkim
Installation
composer require metalinspired/laminas-dkim
Create a ./config/autoload/dkim.global.php and ./config/autoload/dkim.local.php file with the configuration variable values as described in the project .dist files.
Usage
-
Create a DKIM domain key
-
Configure the DkimSigner using the config.dist file
-
Sign & send
$mail = new \Laminas\Mail\Message();
$mail->setBody("Hello world!");
$mail->setFrom('from@example.com');
$mail->addTo('to@example.com');
$mail->setSubject('subject');
// Sign message with dkim
$signer = $this->getServiceLocator()->get(\Dkim\Signer\Signer::class);
$signer->signMessage($mail);
// Send message
$transport = new \Laminas\Mail\Transport\Sendmail();
$transport->send($mail);
统计信息
- 总下载量: 12.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-08