Message
class Message mixin Email
Traits
Methods
Forward a method call to the given object.
Forward a method call to the given object, returning $this if the forwarded call returned itself.
Throw a bad method call exception for the given method.
Create a new message instance.
Set the "return path" of the message.
Add a recipient to the message.
Add a carbon copy to the message.
Add a blind carbon copy to the message.
Add a "reply to" address to the message.
Add a recipient to the message.
Add an address debug header for a list of recipients.
Attach in-memory data as an attachment.
Embed in-memory data in the message and get the CID.
Get the underlying Symfony Email instance.
Dynamically pass missing methods to the Symfony instance.
Details
in
ForwardsCalls at line 22
protected mixed
forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
in
ForwardsCalls at line 52
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.
in
ForwardsCalls at line 66
static protected never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
at line 25
__construct(Email $message)
Create a new message instance.
at line 33
Message
from(array|string $address, string|null $name = null)
Add a "from" address to the message.
at line 45
Message
sender(array|string $address, string|null $name = null)
Set the "sender" of the message.
at line 57
Message
returnPath(string $address)
Set the "return path" of the message.
at line 67
Message
to(array|string $address, string|null $name = null, bool $override = false)
Add a recipient to the message.
at line 83
Message
forgetTo()
Remove all "to" addresses from the message.
at line 98
Message
cc(array|string $address, string|null $name = null, bool $override = false)
Add a carbon copy to the message.
at line 114
Message
forgetCc()
Remove all carbon copy addresses from the message.
at line 129
Message
bcc(array|string $address, string|null $name = null, bool $override = false)
Add a blind carbon copy to the message.
at line 145
Message
forgetBcc()
Remove all of the blind carbon copy addresses from the message.
at line 160
Message
replyTo(array|string $address, string|null $name = null)
Add a "reply to" address to the message.
at line 168
protected Message
addAddresses(array|string $address, string|null $name, string $type)
Add a recipient to the message.
at line 202
protected Message
addAddressDebugHeader(string $header, array $addresses)
Add an address debug header for a list of recipients.
at line 215
Message
subject(string $subject)
Set the subject of the message.
at line 225
Message
priority(int $level)
Set the message priority level.
at line 235
Message
attach(Attachable|Attachment|string $file, array $options = [])
Attach a file to the message.
at line 253
Message
attachData(mixed $data, string $name, array $options = [])
Attach in-memory data as an attachment.
at line 263
string
embed(Attachable|Attachment|string $file)
Embed a file in the message and get the CID.
at line 300
string
embedData(mixed $data, string $name, string|null $contentType = null)
Embed in-memory data in the message and get the CID.
at line 312
Email
getSymfonyMessage()
Get the underlying Symfony Email instance.
at line 320
__call(string $method, array $parameters)
Dynamically pass missing methods to the Symfony instance.