2017 © Pedro Peláez
 

symfony-bundle mailer-bundle

Conveniently send html/plaintext emails in Symfony2.

image

eschmar/mailer-bundle

Conveniently send html/plaintext emails in Symfony2.

  • Sunday, April 24, 2016
  • by eschmar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 47 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Mailer Bundle

Conveniently send html/plaintext emails in Symfony4. This bundle ships with a version of Mailgun's Action Email ready to send emails., (*1)

test.html.twig, (*2)

Installation

Composer (Packagist):, (*3)

composer require eschmar/mailer-bundle ^1.0.0

Usage

The eschmar_mailer service expects templates to have the 3 blocks subject, body_html and body_plain and already includes a layout file @EschmarMailer/Mail/layout.html.twig ready to go. I do not recommend using embedded base64 images, this is just for demo purposes. Of course this layout is entirely optional, you may build your own templates. Using the Twig tag {% cssinline %}{% endcssinline %}, CSS styles are inlined (some email clients strip out <head> and <style> tags)., (*4)

use Eschmar\MailerBundle\Service\Mailer;
// ...

if (!$mailer->send("@EschmarMailer/Mail/test.html.twig", [], $from, $to[, $bcc])) {
    // Oops!
    return;
}

// success

License

MIT License., (*5)

The Versions

24/04 2016

dev-master

9999999-dev https://github.com/eschmar/mailer-bundle

Conveniently send html/plaintext emails in Symfony2.

  Sources   Download

MIT

The Requires

 

mail symfony mailer

24/04 2016

v0.1.0

0.1.0.0 https://github.com/eschmar/mailer-bundle

Conveniently send html/plaintext emails in Symfony2.

  Sources   Download

MIT

The Requires

 

mail symfony mailer