Skip to content

Instantly share code, notes, and snippets.

@davedevelopment
Forked from anonymous/gist:6923552
Created October 10, 2013 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davedevelopment/6923671 to your computer and use it in GitHub Desktop.
Save davedevelopment/6923671 to your computer and use it in GitHub Desktop.
$app->register(
new Silex\Provider\SwiftmailerServiceProvider(),
array(
'swiftmailer.options' => array(
'sender_address' => $sender,
'transport' => 'smtp',
'encryption' => null,
'auth_mode' => 'login',
'host' => $server,
'port' => $port',
'username' => $user,
'password' => $pass
)
)
);
$app['mailer']->registerPlugin(new Swift_Plugins_RedirectingPlugin($dev_email_address));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment