From 4fa3cf59d3817e864b20e59f59f0b3b1face44fb Mon Sep 17 00:00:00 2001 From: Andrew Aitken-Fincham Date: Tue, 5 Dec 2017 17:18:46 +0000 Subject: [PATCH] Update index.md --- docs/en/02_Developer_Guides/10_Email/index.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/en/02_Developer_Guides/10_Email/index.md b/docs/en/02_Developer_Guides/10_Email/index.md index 4261e490c..d65e7e967 100644 --- a/docs/en/02_Developer_Guides/10_Email/index.md +++ b/docs/en/02_Developer_Guides/10_Email/index.md @@ -18,6 +18,22 @@ SilverStripe\Core\Injector\Injector: Swift_Transport: Swift_SendmailTransport ``` +For example, to use SMTP: + +```yml +SilverStripe\Core\Injector\Injector: + Swift_Transport: + class: Swift_SmtpTransport + properties: + Host: smtp.host.com + Port: + Encryption: tls + calls: + Username: [ setUsername, [''] ] + Password: [ setPassword, [''] ] + AuthMode: [ setAuthMode, ['login'] ] +``` + ## Usage ### Sending plain text only