2017 © Pedro PelĂĄez
 

library swiftmailer-punycode-plugin

Swiftmailer plugin to convert domain in email addresses to punycode

image

ossinkine/swiftmailer-punycode-plugin

Swiftmailer plugin to convert domain in email addresses to punycode

  • Thursday, January 18, 2018
  • by ossinkine
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1,111 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 29 % Grown

The README.md

Swiftmailer Punycode Plugin

Build Status, (*1)

Swiftmailer plugin to convert domain in email addresses to punycode., (*2)

Installation

composer require ossinkine/swiftmailer-punycode-plugin

Usage

Create and register a plugin instance when you setup a Swift_Mailer instance., (*3)

use Ossinkine\Swift\Plugin\PunycodePlugin;

// Create the Mailer using any Transport
$mailer = new Swift_Mailer(
  new Swift_SmtpTransport('smtp.example.org', 25)
);

// Register the plugin
$mailer->registerPlugin(new PunycodePlugin());

Now you can send an email to an address with Unicode-encoded domain., (*4)

// Create a message with Unicode-encoded receiver address
$message = (new Swift_Message())
  ->setTo(['receiver@bĂŒcher.tld'])
;
// Send the message
$mailer->send($message);

Usage with Symfony

Just register a service with a swiftmailer.default.plugin tag in your services.yml., (*5)

Ossinkine\Swift\Plugin\PunycodePlugin:
    tags: [swiftmailer.default.plugin]

License

Swiftmailer Punycode Plugin is licensed under the MIT license., (*6)

The Versions

18/01 2018

dev-master

9999999-dev

Swiftmailer plugin to convert domain in email addresses to punycode

  Sources   Download

MIT

The Requires

 

The Development Requires

swiftmailer punycode swiftmailer-plugin

18/01 2018

v1.0.0

1.0.0.0

Swiftmailer plugin to convert domain in email addresses to punycode

  Sources   Download

MIT

The Requires

 

The Development Requires

swiftmailer punycode swiftmailer-plugin