Mailer
Implements
Uses
Properties
$name string
The name that is configured for the mailer.
$transport Symfony\...\TransportInterface
The Symfony Transport instance.
$from array
The global from address and name.
$replyTo array
The global reply-to address and name.
$returnPath array
The global return path address.
$to array
The global to address and name.
Methods
__construct ( string $name , Factory $views , Symfony\...\TransportInterface $transport , Dispatcher $events ) : void
Create a new Mailer instance.
Parameters
- $name string
- $views Factory
- $transport Symfony\...\TransportInterface
- $events Dispatcher |null
alwaysFrom ( $address , $name ) : void
Set the global from address and name.
Parameters
- $address string
- $name string|null
alwaysReplyTo ( $address , $name ) : void
Set the global reply-to address and name.
Parameters
- $address string
- $name string|null
alwaysReturnPath ( $address ) : void
Set the global return path address.
Parameters
- $address string
alwaysTo ( $address , $name ) : void
Set the global to address and name.
Parameters
- $address string
- $name string|null
to ( $users , $name ) : PendingMail
Begin the process of mailing a mailable class instance.
Parameters
- $users mixed
- $name string|null
cc ( $users , $name ) : PendingMail
Begin the process of mailing a mailable class instance.
Parameters
- $users mixed
- $name string|null
bcc ( $users , $name ) : PendingMail
Begin the process of mailing a mailable class instance.
Parameters
- $users mixed
- $name string|null
html ( $html , $callback ) : SentMessage |null
Send a new message with only an HTML part.
Parameters
- $html string
- $callback mixed
raw ( $text , $callback ) : SentMessage |null
Send a new message with only a raw text part.
Parameters
- $text string
- $callback mixed
plain ( $view , array $data , $callback ) : SentMessage |null
Send a new message with only a plain part.
Parameters
- $view string
- $data array
- $callback mixed
render ( $view , array $data ) : string
Render the given message as a view.
Parameters
- $view string|array
- $data array
send ( $view , array $data , $callback ) : SentMessage |null
Send a new message using a view.
Parameters
sendMailable ( Mailable $mailable ) : SentMessage |null
Send the given mailable.
Parameters
- $mailable Mailable
parseView ( $view ) : array
Parse the given view name or array.
Parameters
- $view Closure |array|string
addContent ( $message , $view , $plain , $raw , $data ) : void
Add the content to a given message.
Parameters
- $message Message
- $view string
- $plain string
- $raw string
- $data array
renderView ( $view , $data ) : string
Render the given view.
Parameters
- $view Closure |string
- $data array
setGlobalToAndRemoveCcAndBcc ( $message ) : void
Set the global "to" address on the given message.
Parameters
- $message Message
queue ( $view , $queue ) : mixed
Queue a new e-mail message for sending.
Parameters
- $view Mailable |string|array
- $queue string|null
onQueue ( $queue , $view ) : mixed
Queue a new e-mail message for sending on the given queue.
Parameters
- $queue string
- $view Mailable
queueOn ( $queue , $view ) : mixed
Queue a new e-mail message for sending on the given queue.
Parameters
- $queue string
- $view Mailable
later ( $delay , $view , $queue ) : mixed
Queue a new e-mail message for sending after (n) seconds.
Parameters
- $delay DateTimeInterface |DateInterval |int
- $view Mailable
- $queue string|null
laterOn ( $queue , $delay , $view ) : mixed
Queue a new e-mail message for sending after (n) seconds on the given queue.
Parameters
- $queue string
- $delay DateTimeInterface |DateInterval |int
- $view Mailable
sendSymfonyMessage ( Symfony\...\Email $message ) : Symfony\...\SentMessage|null
Send a Symfony Email instance.
Parameters
- $message Symfony\...\Email
shouldSendMessage ( $message , $data ) : bool
Determines if the email can be sent.
Parameters
- $message Symfony\...\Email
- $data array
dispatchSentEvent ( $message , $data ) : void
Dispatch the message sent event.
Parameters
- $message SentMessage
- $data array
getSymfonyTransport ( ) : Symfony\...\TransportInterface
Get the Symfony Transport instance.
setSymfonyTransport ( Symfony\...\TransportInterface $transport ) : void
Set the Symfony Transport instance.
Parameters
- $transport Symfony\...\TransportInterface