silverstripe-framework/docs/en/02_Developer_Guides
Martin D b1563b73bf DOCS How to specify textual name with Email::admin_email (#8337)
* Allow use of display names with SwiftMailer

The syntax to allow display names with SwiftMailer is as follow:
`->setFrom(['john@doe.com' => 'John Doe'])`

Just like you set the `Email.admin_email`, you can set the default sender display name through the `Email.admin_email_displayname` configuration setting.

Refs:
- https://swiftmailer.symfony.com/docs/introduction.html#basic-usage
- https://docs.silverstripe.org/en/4/developer_guides/email/#administrator-emails

* Update Email.php

Simpler code using `Email.admin_email` as an associative array

* Update index.md

Added documentation showing how to add an email display name.
2018-08-29 11:42:12 +12:00
..
00_Model $has_one docs 2018-08-18 15:06:08 +02:00
01_Templates Merge branch '4.2' into 4 2018-08-15 13:23:27 +12:00
02_Controllers DOCS Consistent app/ folder and composer use 2018-06-25 10:40:19 +12:00
03_Forms Replace broken link to tutorial 2018-06-29 16:03:32 +02:00
04_Configuration DOCS Update docs to reflect true config merge priorities 2018-07-23 14:15:25 +01:00
05_Extending DOCS Consistent app/ folder and composer use 2018-06-25 10:40:19 +12:00
06_Testing DOCS More resilient example domain 2018-06-26 10:13:36 +12:00
07_Debugging DOCS More resilient example domain 2018-06-26 10:13:36 +12:00
08_Performance Merge branch '4.2' into 4 2018-07-30 11:07:15 +01:00
09_Security NEW Option for secure "remember me" cookie 2018-07-30 16:41:49 +01:00
10_Email DOCS How to specify textual name with Email::admin_email (#8337) 2018-08-29 11:42:12 +12:00
11_Integration DOCS Consistent app/ folder and composer use 2018-06-25 10:40:19 +12:00
12_Search Removed deprecated tutorials from docs 2017-12-19 11:45:27 +13:00
13_i18n DOCS Consistent app/ folder and composer use 2018-06-25 10:40:19 +12:00
14_Files DOCS More resilient example domain 2018-06-26 10:13:36 +12:00
15_Customising_the_Admin_Interface DOCS More resilient example domain 2018-06-26 10:13:36 +12:00
16_Execution_Pipeline Merge branch '3' into 4 2017-11-25 17:34:24 +00:00
17_CLI Code block whitespace / formatting cleanup 2017-10-27 15:38:27 +13:00
18_Cookies_And_Sessions Update 02_Sessions.md 2018-07-21 12:27:12 +02:00
index.md Add introduction files to each of the sections 2014-12-17 15:48:54 +13:00