Skip to content

Instantly share code, notes, and snippets.

@vatson
Created August 30, 2011 09:10
Show Gist options
  • Save vatson/1180508 to your computer and use it in GitHub Desktop.
Save vatson/1180508 to your computer and use it in GitHub Desktop.
mail config
<?php
$adapter = new SwiftAdapter(new Swift());
$serializer = new Serializer(
array(new DataHolderNormailizer),
array('html' => new HtmlEncoder())
);
$configuration = new DataHolder();
$configuration->set('to', '[email protected]')
->set('from', '[email protected]')
->set('format', 'html')
;
$mailer = new MailSender($adapter, $serializer, $configuration);
@makasim
Copy link

makasim commented Aug 30, 2011

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment