2017 © Pedro Peláez
 

library dot-controller-plugin-mail

DotKernel mail controller plugin component

image

dotkernel/dot-controller-plugin-mail

DotKernel mail controller plugin component

  • Monday, May 14, 2018
  • by dotkernel
  • Repository
  • 2 Watchers
  • 1 Stars
  • 626 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

[!CAUTION], (*1)

Security-Only Maintenance Mode

This package is considered feature-complete, and is now in security-only maintenance mode., (*2)

OSS Lifecycle GitHub license PHP from Packagist (specify version), (*3)

dot-controller-plugin-mail

Mail controller plugin for easy access to dot-mail service from any controller., (*4)

Installation

Run the following command in your project's root directory, (*5)

$ composer require dotkernel/dot-controller-plugin-mail

This will also install packages dotkernel/dot-controller and 'dotkernel/dot-mail as dependencies. Next, make sure you merge the ConfigProvider to your application's configuration., (*6)

Usage

Because multiple mail services can be defined in the dot-mail module, there can also be requested as controller plugins by following the convention, (*7)

//calling this plugins without parameters, will return the mail service instead, otherwise will use parameters to send directly the e-mail
$this->sendMail(); //will return the default mail service

$this->sendMailYourMailService(); //will return the mail service named your_mail_service

Controller mail plugins are invokable. To send an email you can use the following 2 methods, (*8)

  • $this->sendMail(array $mailConfig) - will send a mail through a mail service configured based on the $mailConfig param. The array parameter valid keys are body, subject, to, from, cc, bcc, attachments. The body parameter can be specified as an array too in which case the $body[0] should be the template name to use as mail template and $body[1] should be optionally the template parameters., (*9)

  • $this->sendMail($body, $subject, $to, $from, $cc, $bcc, $attachments) - the parameters have the same meaning as in the previous method, (*10)

The Versions

14/05 2018

dev-master

9999999-dev

DotKernel mail controller plugin component

  Sources   Download

MIT

The Requires

 

The Development Requires

by n3vrax
by DotKernel Team

14/05 2018

v1.0.0

1.0.0.0

DotKernel mail controller plugin component

  Sources   Download

MIT

The Requires

 

The Development Requires

by DotKernel Team

14/05 2018

dev-develop

dev-develop

DotKernel mail controller plugin component

  Sources   Download

MIT

The Requires

 

The Development Requires

by n3vrax
by DotKernel Team

21/04 2017

0.1.3

0.1.3.0

DotKernel mail controller plugin component

  Sources   Download

MIT

The Requires

 

The Development Requires

by n3vrax

15/03 2017

0.1.2

0.1.2.0

DotKernel mail controller plugin component

  Sources   Download

MIT

The Requires

 

The Development Requires

by n3vrax

10/03 2017

0.1.1

0.1.1.0

DotKernel mail controller plugin component

  Sources   Download

MIT

The Requires

 

The Development Requires

by n3vrax

09/03 2017

0.1.0

0.1.0.0

DotKernel mail controller plugin component

  Sources   Download

MIT

The Requires

 

The Development Requires

by n3vrax