lwc / lwcmailer
ZF2 module for sending mails.
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/lwc/lwcmailer
This package is not auto-updated.
Last update: 2025-10-25 21:59:02 UTC
README
To install via composer, add the repository to your composer.json
"repositories": [
    {
        "type": "package",
        "package": {
            "name": "lwc/LwcMailer",
            "version": "1.0.0",
            "source": {
                "url": "http://github.com/lewildcode/LwcMailer",
                "type": "git",
                "reference": "master"
            }
        }
    }
],
then add the package to the require block
"require": {
    "lwc/LwcMailer": "1.*",
}
Add the "LwcMailer" module to the config/application.config.php. Copy the .dist config file to your config/autoload/ directory and modify as needed.
Example:
public function sendMailViaLwcMailer ()
{
    $mailer = $this->getServiceLocator()->get('LwcMailer\Service\Mailer');
    $cfg = $mailer->getOptions();
    $mail = $mailer->createMail('My mail subject', 'mail body');
    $mailer->send($mail);
}