2017 © Pedro Peláez
 

library lwcmailer

ZF2 module for sending mails.

image

lwc/lwcmailer

ZF2 module for sending mails.

  • Friday, February 21, 2014
  • by timoziemann
  • Repository
  • 3 Watchers
  • 0 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

LwcMailer

To install via composer, add the repository to your composer.json, (*1)

"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, (*2)

"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., (*3)

Example:, (*4)

public function sendMailViaLwcMailer ()
{
    $mailer = $this->getServiceLocator()->get('LwcMailer\Service\Mailer');
    $cfg = $mailer->getOptions();
    $mail = $mailer->createMail('My mail subject', 'mail body');
    $mailer->send($mail);
}

The Versions

21/02 2014

dev-master

9999999-dev

ZF2 module for sending mails.

  Sources   Download