On this page
Message
class Message mixin Email (View source)
Traits
Properties
protected Email | $message | The Symfony Email instance. |
|
protected array deprecated | $embeddedFiles | CIDs of files embedded in the message. |
Methods
mixed | forwardCallTo(mixed $object, string $method, array $parameters) Forward a method call to the given object. |
from ForwardsCalls |
mixed | forwardDecoratedCallTo(mixed $object, string $method, array $parameters) Forward a method call to the given object, returning $this if the forwarded call returned itself. |
from ForwardsCalls |
static void | throwBadMethodCallException(string $method) Throw a bad method call exception for the given method. |
from ForwardsCalls |
void | __construct(Email $message) Create a new message instance. |
|
$this | from(string|array $address, string|null $name = null) Add a "from" address to the message. |
|
$this | sender(string|array $address, string|null $name = null) Set the "sender" of the message. |
|
$this | returnPath(string $address) Set the "return path" of the message. |
|
$this | to(string|array $address, string|null $name = null, bool $override = false) Add a recipient to the message. |
|
$this | forgetTo() Remove all "to" addresses from the message. |
|
$this | cc(string|array $address, string|null $name = null, bool $override = false) Add a carbon copy to the message. |
|
$this | forgetCc() Remove all carbon copy addresses from the message. |
|
$this | bcc(string|array $address, string|null $name = null, bool $override = false) Add a blind carbon copy to the message. |
|
$this | forgetBcc() Remove all of the blind carbon copy addresses from the message. |
|
$this | replyTo(string|array $address, string|null $name = null) Add a "reply to" address to the message. |
|
$this | addAddresses(string|array $address, string $name, string $type) Add a recipient to the message. |
|
$this | addAddressDebugHeader(string $header, array $addresses) Add an address debug header for a list of recipients. |
|
$this | subject(string $subject) Set the subject of the message. |
|
$this | priority(int $level) Set the message priority level. |
|
$this | attach(string|Attachable|Attachment $file, array $options = []) Attach a file to the message. |
|
$this | attachData(string|resource $data, string $name, array $options = []) Attach in-memory data as an attachment. |
|
string | embed(string|Attachable|Attachment $file) Embed a file in the message and get the CID. |
|
string | embedData(string|resource $data, string $name, string|null $contentType = null) Embed in-memory data in the message and get the CID. |
|
getSymfonyMessage() Get the underlying Symfony Email instance. |
||
mixed | __call(string $method, array $parameters) Dynamically pass missing methods to the Symfony instance. |
Details
protected mixed forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
protected mixed forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
static protected void throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
void __construct(Email $message)
Create a new message instance.
$this from(string|array $address, string|null $name = null)
Add a "from" address to the message.
$this sender(string|array $address, string|null $name = null)
Set the "sender" of the message.
$this returnPath(string $address)
Set the "return path" of the message.
$this to(string|array $address, string|null $name = null, bool $override = false)
Add a recipient to the message.
$this forgetTo()
Remove all "to" addresses from the message.
$this cc(string|array $address, string|null $name = null, bool $override = false)
Add a carbon copy to the message.
$this forgetCc()
Remove all carbon copy addresses from the message.
$this bcc(string|array $address, string|null $name = null, bool $override = false)
Add a blind carbon copy to the message.
$this forgetBcc()
Remove all of the blind carbon copy addresses from the message.
$this replyTo(string|array $address, string|null $name = null)
Add a "reply to" address to the message.
protected $this addAddresses(string|array $address, string $name, string $type)
Add a recipient to the message.
protected $this addAddressDebugHeader(string $header, array $addresses)
Add an address debug header for a list of recipients.
$this subject(string $subject)
Set the subject of the message.
$this priority(int $level)
Set the message priority level.
$this attach(string|Attachable|Attachment $file, array $options = [])
Attach a file to the message.
$this attachData(string|resource $data, string $name, array $options = [])
Attach in-memory data as an attachment.
string embed(string|Attachable|Attachment $file)
Embed a file in the message and get the CID.
string embedData(string|resource $data, string $name, string|null $contentType = null)
Embed in-memory data in the message and get the CID.
Email getSymfonyMessage()
Get the underlying Symfony Email instance.
mixed __call(string $method, array $parameters)
Dynamically pass missing methods to the Symfony instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Mail/Message.html