README
Zend Framework DKIM Signer., (*1)
Note, (*2)
I tried to contact the original author of this project, but he ignore me, so I decide to clone the project and continue to improve it., (*3)
I will appreciate every contribution., (*4)
Installation, (*5)
Installation of this module uses composer. For composer documentation, please refer to https://getcomposer.org., (*6)
php composer.phar require joepsyko/zf-dkim, (*7)
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., (*8)
Usage, (*9)
-
Create a DKIM domain key, (*10)
-
Configure the DkimSigner using the config.dist file, (*11)
-
Sign & send, (*12)
I.e. in your Controller:, (*13)
$mail = new \Zend\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 \Zend\Mail\Transport\Sendmail();
$transport->send($mail);
, (*14)
That's it., (*15)