MailContent class final
The body of a Mailable (Laravel's Content): HTML, plain text or
both, or markdown in the mail theme. Give a text alternative when you
can; mail clients and spam filters prefer messages that have one.
Constructors
- MailContent({String? html, String? text, String? markdown, String? subcopy})
-
The body:
html,text, ormarkdownrendered with the mail theme.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- html → String?
-
The HTML body.
final
- markdown → String?
-
Laravel's
markdown:view: rendered in the MailTheme (header, footer, inline styles) for the HTML part, and as text for the text part unless text is given.<x-mail::button>and<x-mail::panel>work as in Laravel.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subcopy → String?
-
Small print under a markdown body, above the footer.
final
- text → String?
-
The plain text body.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited