Skip to content

Instantly share code, notes, and snippets.

@bobdenotter
Last active August 29, 2015 14:13
Show Gist options
  • Save bobdenotter/b256a60de8d3ff71e030 to your computer and use it in GitHub Desktop.
Save bobdenotter/b256a60de8d3ff71e030 to your computer and use it in GitHub Desktop.
Swiftmailer transport

Edit extensions/vendor/bolt/simpleforms/Extension.php, around line 740.

Replace:

$res = $this->app['mailer']->send($message);

With:

// Commented out
// $res = $this->app['mailer']->send($message);

// Use plain 'mail()'
$transport = \Swift_MailTransport::newInstance();
$mailer = \Swift_Mailer::newInstance($transport);
$res = $mailer->send($message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment