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.
Create a safe Symfony address instance.
Ensure the given address cannot inject additional headers or commands.
Ensure the given addresses cannot inject additional headers or commands.
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 27
__construct(Email $message)
Create a new message instance.
at line 37
Message
from(array|string $address, string|null $name = null)
Add a "from" address to the message.
at line 51
Message
sender(array|string $address, string|null $name = null)
Set the "sender" of the message.
at line 65
Message
returnPath(Address|string $address)
Set the "return path" of the message.
at line 79
Message
to(array|string $address, string|null $name = null, bool $override = false)
Add a recipient to the message.
at line 97
Message
forgetTo()
Remove all "to" addresses from the message.
at line 114
Message
cc(array|string $address, string|null $name = null, bool $override = false)
Add a carbon copy to the message.
at line 132
Message
forgetCc()
Remove all carbon copy addresses from the message.
at line 149
Message
bcc(array|string $address, string|null $name = null, bool $override = false)
Add a blind carbon copy to the message.
at line 167
Message
forgetBcc()
Remove all of the blind carbon copy addresses from the message.
at line 184
Message
replyTo(array|string $address, string|null $name = null)
Add a "reply to" address to the message.
at line 194
protected Message
addAddresses(array|string $address, string|null $name, string $type)
Add a recipient to the message.
at line 227
protected Address
createAddress(string $address, string|null $name = null)
Create a safe Symfony address instance.
at line 237
protected Address|string
ensureAddressIsSafe(Address|string $address)
Ensure the given address cannot inject additional headers or commands.
at line 253
protected array
ensureAddressesAreSafe(array $addresses)
Ensure the given addresses cannot inject additional headers or commands.
at line 264
protected Message
addAddressDebugHeader(string $header, array $addresses)
Add an address debug header for a list of recipients.
at line 279
Message
subject(string $subject)
Set the subject of the message.
at line 291
Message
priority(int $level)
Set the message priority level.
at line 303
Message
attach(Attachable|Attachment|string $file, array $options = [])
Attach a file to the message.
at line 324
Message
attachData(mixed $data, string $name, array $options = [])
Attach in-memory data as an attachment.
at line 334
string
embed(Attachable|Attachment|string $file)
Embed a file in the message and get the CID.
at line 373
string
embedData(mixed $data, string $name, string|null $contentType = null)
Embed in-memory data in the message and get the CID.
at line 385
Email
getSymfonyMessage()
Get the underlying Symfony Email instance.
at line 393
mixed
__call(string $method, array $parameters)
Dynamically pass missing methods to the Symfony instance.