class MailMessage extends SimpleMessage (View source)
string | $level | The "level" of the notification (info, success, error). | from SimpleMessage |
string | $subject | The subject of the notification. | from SimpleMessage |
string | $greeting | The notification's greeting. | from SimpleMessage |
array | $introLines | The "intro" lines of the notification. | from SimpleMessage |
array | $outroLines | The "outro" lines of the notification. | from SimpleMessage |
string | $actionText | The text / label for the action. | from SimpleMessage |
string | $actionUrl | The action URL. | from SimpleMessage |
string | $view | The view for the message. | |
array | $viewData | The view data for the message. | |
array | $from | The "from" information for the message. | |
array | $to | The recipient information for the message. | |
array | $cc | The "cc" recipients of the message. | |
array | $replyTo | The "reply to" information for the message. | |
array | $attachments | The attachments for the message. | |
array | $rawAttachments | The raw attachments for the message. | |
int | $priority | Priority level of the message. |
$this | success() Indicate that the notification gives information about a successful operation. | from SimpleMessage |
$this | error() Indicate that the notification gives information about an error. | from SimpleMessage |
$this | level(string $level) Set the "level" of the notification (success, error, etc.). | from SimpleMessage |
$this | subject(string $subject) Set the subject of the notification. | from SimpleMessage |
$this | greeting(string $greeting) Set the greeting of the notification. | from SimpleMessage |
$this | line(Action|string $line) Add a line of text to the notification. | from SimpleMessage |
$this | with(Action|string|array $line) Add a line of text to the notification. | from SimpleMessage |
$this | action(string $text, string $url) Configure the "call to action" button. | from SimpleMessage |
array | toArray() Get an array representation of the message. | from SimpleMessage |
$this | view(string $view, array $data = array()) Set the view for the mail message. | |
$this | from(string $address, string|null $name = null) Set the from address for the mail message. | |
$this | to(string|array $address) Set the recipient address for the mail message. | |
$this | cc(string|array $address) Set the recipients of the message. | |
$this | replyTo(array|string $address, null $name = null) Set the "reply to" address of the message. | |
$this | attach(string $file, array $options = array()) Attach a file to the message. | |
$this | attachData(string $data, string $name, array $options = array()) Attach in-memory data as an attachment. | |
$this | priority(int $level) Set the priority of this message. | |
array | data() Get the data array for the mail message. |
Indicate that the notification gives information about a successful operation.
Indicate that the notification gives information about an error.
Set the "level" of the notification (success, error, etc.).
Set the subject of the notification.
Set the greeting of the notification.
Add a line of text to the notification.
Add a line of text to the notification.
Configure the "call to action" button.
Get an array representation of the message.
Set the view for the mail message.
Set the from address for the mail message.
Set the recipient address for the mail message.
Set the recipients of the message.
Set the "reply to" address of the message.
Attach a file to the message.
Attach in-memory data as an attachment.
Set the priority of this message.
The value is an integer where 1 is the highest priority and 5 is the lowest.
Get the data array for the mail message.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Notifications/Messages/MailMessage.html