Skip to content

Instantly share code, notes, and snippets.

@jetsuit
Created January 25, 2017 22:07
Show Gist options
  • Save jetsuit/be95bc881e275fd9562f7ff4499d9878 to your computer and use it in GitHub Desktop.
Save jetsuit/be95bc881e275fd9562f7ff4499d9878 to your computer and use it in GitHub Desktop.
1. Install bundle https://github.com/tehplague/swiftmailer-mailgun-bundle
2. Follow instructions to this bundle
cspoo_swiftmailer_mailgun:
key: "key-xxxxxxxxxx"
domain: "mydomain.com"
http_client: 'httplug.client'(This is required field)
# Swiftmailer Configuration
swiftmailer:
transport: "mailgun"
#spool: { type: memory } # This will start sending emails on kernel.terminate event
To make this config param allowed : http_client: 'httplug.client'(This is required field)
1.composer require php-http/guzzle6-adapter
2.composer require php-http/httplug-bundle
3.
public function registerBundles()
{
$bundles = array(
// ...
new Http\HttplugBundle\HttplugBundle(),
);
}
4. You need to register on mailgun service. You will receive temp mail domain.
To send email to some email you should add it as authorized recipients in the settings of this domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment