Skip to content

Instantly share code, notes, and snippets.

@KINKCreative
Created January 10, 2019 03:44
Show Gist options
  • Save KINKCreative/3794b21f755a81355783da204d028d33 to your computer and use it in GitHub Desktop.
Save KINKCreative/3794b21f755a81355783da204d028d33 to your computer and use it in GitHub Desktop.
SilverStripe Mailgun/SMTP Mail Configuration
---
Name: myemailconfig
After:
- '#emailconfig'
---
SilverStripe\Core\Injector\Injector:
Swift_Transport:
class: Swift_SmtpTransport
properties:
Host: smtp.mailgun.org
Port: 587
Encryption: tls
calls:
Username: [ setUsername, ['postmaster@mg.xxxx.xxx'] ]
Password: [ setPassword, ['xxxxxxxxxxxxxxx'] ]
AuthMode: [ setAuthMode, ['login'] ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment