MailMessage
Extends
Implements
Uses
Properties
$view array|string
The view to be rendered.
$viewData array
The view data for the message.
$markdown string|null
The Markdown template to render (if applicable).
$theme string|null
The current theme being used when generating emails.
$from array
The "from" information for the message.
$replyTo array
The "reply to" information for the message.
$cc array
The "cc" information for the message.
$bcc array
The "bcc" information for the message.
$attachments array
The attachments for the message.
$rawAttachments array
The raw attachments for the message.
$tags array
The tags for the message.
$metadata array
The metadata for the message.
$priority int
Priority level of the message.
$callbacks array
The callbacks for the message.
Methods
view ( $view , array $data ) : $this
Set the view for the mail message.
Parameters
- $view array|string
- $data array
markdown ( $view , array $data ) : $this
Set the Markdown template for the notification.
Parameters
- $view string
- $data array
template ( $template ) : $this
Set the default markdown template.
Parameters
- $template string
theme ( $theme ) : $this
Set the theme to use with the Markdown template.
Parameters
- $theme string
from ( $address , $name ) : $this
Set the from address for the mail message.
Parameters
- $address string
- $name string|null
replyTo ( $address , $name ) : $this
Set the "reply to" address of the message.
Parameters
- $address array|string
- $name string|null
cc ( $address , $name ) : $this
Set the cc address for the mail message.
Parameters
- $address array|string
- $name string|null
bcc ( $address , $name ) : $this
Set the bcc address for the mail message.
Parameters
- $address array|string
- $name string|null
attach ( $file , array $options ) : $this
Attach a file to the message.
Parameters
- $file string|Attachable |Attachment
- $options array
attachMany ( $files ) : $this
Attach multiple files to the message.
Parameters
- $files (string|Attachable |Attachment |array)[]
attachData ( $data , $name , array $options ) : $this
Attach in-memory data as an attachment.
Parameters
- $data string
- $name string
- $options array
tag ( $value ) : $this
Add a tag header to the message when supported by the underlying transport.
Parameters
- $value string
metadata ( $key , $value ) : $this
Add a metadata header to the message when supported by the underlying transport.
Parameters
- $key string
- $value string
priority ( $level ) : $this
Set the priority of this message.
Parameters
- $level int
data ( ) : array
Get the data array for the mail message.
parseAddresses ( $value ) : array
Parse the multi-address array into the necessary format.
Parameters
- $value array
arrayOfAddresses ( $address ) : bool
Determine if the given "address" is actually an array of addresses.
Parameters
- $address mixed
withSymfonyMessage ( $callback ) : $this
Register a callback to be called with the Symfony message instance.
Parameters
- $callback callable