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 35
Message
from(array|string $address, string|null $name = null)
Add a "from" address to the message.
at line 47
Message
sender(array|string $address, string|null $name = null)
Set the "sender" of the message.
at line 59
Message
returnPath(Address|string $address)
Set the "return path" of the message.
at line 71
Message
to(array|string $address, string|null $name = null, bool $override = false)
Add a recipient to the message.
at line 87
Message
forgetTo()
Remove all "to" addresses from the message.
at line 102
Message
cc(array|string $address, string|null $name = null, bool $override = false)
Add a carbon copy to the message.
at line 118
Message
forgetCc()
Remove all carbon copy addresses from the message.
at line 133
Message
bcc(array|string $address, string|null $name = null, bool $override = false)
Add a blind carbon copy to the message.
at line 149
Message
forgetBcc()
Remove all of the blind carbon copy addresses from the message.
at line 164
Message
replyTo(array|string $address, string|null $name = null)
Add a "reply to" address to the message.
at line 172
protected Message
addAddresses(array|string $address, string|null $name, string $type)
Add a recipient to the message.
at line 204
protected Address
createAddress(string $address, string|null $name = null)
Create a safe Symfony address instance.
at line 214
protected Address|string
ensureAddressIsSafe(Address|string $address)
Ensure the given address cannot inject additional headers or commands.
at line 230
protected array
ensureAddressesAreSafe(array $addresses)
Ensure the given addresses cannot inject additional headers or commands.
at line 240
protected Message
addAddressDebugHeader(string $header, array $addresses)
Add an address debug header for a list of recipients.
at line 253
Message
subject(string $subject)
Set the subject of the message.
at line 263
Message
priority(int $level)
Set the message priority level.
at line 273
Message
attach(Attachable|Attachment|string $file, array $options = [])
Attach a file to the message.
at line 293
Message
attachData(mixed $data, string $name, array $options = [])
Attach in-memory data as an attachment.
at line 303
string
embed(Attachable|Attachment|string $file)
Embed a file in the message and get the CID.
at line 342
string
embedData(mixed $data, string $name, string|null $contentType = null)
Embed in-memory data in the message and get the CID.
at line 354
Email
getSymfonyMessage()
Get the underlying Symfony Email instance.
at line 362
mixed
__call(string $method, array $parameters)
Dynamically pass missing methods to the Symfony instance.