silverstripe-framework/docs/en
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
..
_images Update main.php path to support framework in vendor 2017-10-03 09:03:37 +13:00
00_Getting_Started DOCS More resilient example domain 2018-06-26 10:13:36 +12:00
01_Lessons Removed deprecated tutorials from docs 2017-12-19 11:45:27 +13:00
02_Developer_Guides DOCS How to specify textual name with Email::admin_email (#8337) 2018-08-29 11:42:12 +12:00
03_Upgrading Update index.md 2018-08-01 16:30:18 +12:00
04_Changelogs Fix incorrect version number in 4.3.0 changelog 2018-08-28 09:07:22 +01:00
05_Contributing DOCS Consistent app/ folder and composer use 2018-06-25 10:40:19 +12:00
index.md Docs: Remove forum and IRC references 2017-12-19 11:45:27 +13:00