From 757d26ae61576202965aea421debce286e40dd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20Kru=CC=88ss?= Date: Sat, 27 Aug 2016 07:00:46 -0700 Subject: [PATCH] Plain text email notification template --- notifications.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notifications.md b/notifications.md index 57d48b79944..59719d44730 100644 --- a/notifications.md +++ b/notifications.md @@ -11,7 +11,7 @@ - [Formatting Mail Messages](#formatting-mail-messages) - [Customizing The Recipient](#customizing-the-recipient) - [Customizing The Subject](#customizing-the-subject) - - [Customizing The Template](#customizing-the-template) + - [Customizing The Templates](#customizing-the-templates) - [Error Messages](#error-messages) - [Database Notifications](#database-notifications) - [Prerequisites](#database-prerequisites) @@ -149,7 +149,7 @@ If a notification supports being sent as an email, you should define a `toMail` > {tip} Note we are using `$this->invoice->id` in our `message` method. You may pass any data your notification needs to generate its message into the notification's constructor. -In this example, we register a line of text, a call to action, and then another line of text. These methods provided by the `MailMessage` object make it simple and fast to format small transactional emails. The mail channel will then translate the message components into a nice, responsive HTML email template. Here is an example of an email generated by the `mail` channel: +In this example, we register a line of text, a call to action, and then another line of text. These methods provided by the `MailMessage` object make it simple and fast to format small transactional emails. The mail channel will then translate the message components into a nice, responsive HTML email template with a plain text fallback. Here is an example of an email generated by the `mail` channel: @@ -199,9 +199,9 @@ By default, the email's subject is the class name of the notification formatted } -### Customizing The Template +### Customizing The Templates -You can modify the template used by mail notifications by publishing the notification package's resources. After running this command, the mail notification template will be located in the `resources/views/vendor/notifications` directory: +You can modify the HTML and plain-text template used by mail notifications by publishing the notification package's resources. After running this command, the mail notification templates will be located in the `resources/views/vendor/notifications` directory: php artisan vendor:publish --tag laravel-notifications