Skip to content

Instantly share code, notes, and snippets.

Created October 10, 2013 18:55
Show Gist options
  • Save anonymous/6923552 to your computer and use it in GitHub Desktop.
Save anonymous/6923552 to your computer and use it in GitHub Desktop.
Swiftmailer/silex delivery address attempt
$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