Message
class Message (View source)
Methods
Create a new message instance.
Add a "from" address to the message.
Set the "sender" of the message.
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.
Set the subject of the message.
Set the message priority level.
Attach a file to the message.
Attach in-memory data as an attachment.
Embed a file in the message and get the CID.
Embed in-memory data in the message and get the CID.
Get the underlying Swift Message instance.
Dynamically pass missing methods to the Swift instance.
Details
at line line 35
$this
from(
string|array $address,
string|null $name = null)
Add a "from" address to the message.
at line line 49
$this
sender(
string|array $address,
string|null $name = null)
Set the "sender" of the message.
at line line 77
$this
to(
string|array $address,
string|null $name = null,
bool $override = false)
Add a recipient to the message.
at line line 95
$this
cc(
string|array $address,
string|null $name = null)
Add a carbon copy to the message.
at line line 107
$this
bcc(
string|array $address,
string|null $name = null)
Add a blind carbon copy to the message.
at line line 119
$this
replyTo(
string|array $address,
string|null $name = null)
Add a reply to address to the message.
at line line 176
$this
attach(
string $file,
array $options = array())
Attach a file to the message.
at line line 202
$this
attachData(
string $data,
string $name,
array $options = array())
Attach in-memory data as an attachment.
at line line 240
string
embedData(
string $data,
string $name,
string|null $contentType = null)
Embed in-memory data in the message and get the CID.
at line line 292
mixed
__call(
string $method,
array $parameters)
Dynamically pass missing methods to the Swift instance.