2017 © Pedro Peláez
 

library app-swift-mailer

Integration of the swiftmailer/swiftmailer into the weew/app package.

image

weew/app-swift-mailer

Integration of the swiftmailer/swiftmailer into the weew/app package.

  • Thursday, July 21, 2016
  • by weew
  • Repository
  • 1 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

App SwiftMailer provider

Build Status Code Quality Test Coverage Version Licence, (*1)

Table of contents

Installation

composer require weew/app-swift-mailer, (*2)

Introduction

This package integrates the swiftmailer/swiftmailer library into the weew/app package., (*3)

Usage

To make SwiftMailer available inside your application, simply register SwiftMailerProvider on the kernel., (*4)

$app->getKernel()->addProviders([
    SwiftMailerProvider::class
]);

You can retrieve a specific mailer by config name like this:, (*5)

$swiftMailerManager = $app->getContainer()->get(ISwiftMailerManager::class);

// returns the default mailer
$swiftMailerManager->getMailer();

// returns a mailer using the specific config
$swiftMailerManager->getMailer('config1');

Example config

Currently supported transports are null, sendmail, smtp. This is how your configuration might look like:, (*6)

swift_mailer:
  transports:
    # this is the default transport that is used in case no
    # mailer config name has been specified
    default: "{swift_mailer.transports.config2}"

    config1:
      type: smtp
      # server settings
      host: localhost
      port: 25
      security: tls
      # server username and password
      username:
      password:

    config2:
      type: sendmail
      # override for the used sendmail command
      command:

The Versions

21/07 2016

dev-master

9999999-dev

Integration of the swiftmailer/swiftmailer into the weew/app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

21/07 2016

v1.1.1

1.1.1.0

Integration of the swiftmailer/swiftmailer into the weew/app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

29/06 2016

v1.1.0

1.1.0.0

Integration of the swiftmailer/swiftmailer into the weew/php-app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

28/06 2016

v1.0.1

1.0.1.0

Integration of the swiftmailer/swiftmailer into the weew/php-app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott

28/06 2016

v1.0.0

1.0.0.0

Integration of the swiftmailer/swiftmailer into the weew/php-app package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maxim Kott