2017 © Pedro PelĂĄez
 

cakephp-plugin cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

image

orken/cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

  • Thursday, May 31, 2018
  • by Orken
  • Repository
  • 1 Watchers
  • 0 Stars
  • 368 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 31 % Grown

The README.md

CakePHP 3 Mandrill API plugin

Plugin Mandrill pour CakePHP 3 pour utiliser l'API. Afin de l'utiliser vous devez disposer d'un compte Mandrill pour avoir une API key., (*1)

Pour installer ce plugin, la meilleure solution est d'utiliser Composer., (*2)

Rajoutez :, (*3)

"orken/cakephp3-mandrill-api": "*"

dans votre fichier composer.json et lancez composer update ., (*4)

Configurer votre application CakePHP

Dans votre fichier de configuration (app.php ou un spécifique), rajouter une rubrique Mandrill., (*5)

'Mandrill' => [
    'apikey'        => '----votre cle---',
    'template_name' => 'nom-du-template'
]

Toutes les valeurs dans cette rubrique sont optionnelles et peuvent ĂȘtre assignĂ©es postĂ©rieurement au moment de l'instanciation de la classe., (*6)

Envoyer des emails

Ajouter le namespace pour MandrillApi:, (*7)

use MandrillApi\Network\Email\MandrillApi;

Puis créé un email, assigner le template Mandrill/Mailchimp, donnez les destinataires ainsi que les valeurs particuliers, et envoyez., (*8)

$email = new Mandrill(['template_name'=>'mon-template-mailchimp']);
$email
    ->subject('Mon sujet Mandrill')
    ->from('contact@example.com',"Mon nom d'expéditeur")
    ->data([
        'lemail1@domaine1.com'=> [
            'displayname' => 'monsieur 1',
            'texteperso' => "Lorem ipsum dolor sit amet."
        ],
        'lemail2@domaine2.fr'=> [
            'displayname' => 'madame 1',
            'texteperso' => "Sunt saepe at, officiis quasi impedit?"
        ]
    ])
    ->send();

Pensez Ă  valider le domaine qui envoie les mails dans Mandrill., (*9)

The Versions

31/05 2018

dev-master

9999999-dev https://github.com/Orken/cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

  Sources   Download

MIT

The Requires

 

api cakephp mandrill

31/05 2018

1.4

1.4.0.0 https://github.com/Orken/cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

  Sources   Download

MIT

The Requires

 

api cakephp mandrill

09/10 2017

1.3

1.3.0.0 https://github.com/Orken/cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

  Sources   Download

MIT

The Requires

 

api cakephp mandrill

05/10 2017

1.2

1.2.0.0 https://github.com/Orken/cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

  Sources   Download

MIT

The Requires

 

api cakephp mandrill

02/10 2017

1.1

1.1.0.0 https://github.com/Orken/cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

  Sources   Download

MIT

The Requires

 

api cakephp mandrill

17/02 2016

1.0

1.0.0.0 https://github.com/Orken/cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

  Sources   Download

MIT

The Requires

 

api cakephp mandrill

20/11 2015

0.1.x-dev

0.1.9999999.9999999-dev https://github.com/Orken/cakephp3-mandrill-api

Send mail using Mandrill Api (with MailChimp)

  Sources   Download

MIT

The Requires

 

api cakephp mandrill