class DraftMessage implements Stringable (View source)

Properties

protected Email $message

The underlying Symfony Email instance.

Methods

__construct(string|null $from = null, array|string $to = [], array|string $cc = [], array|string $bcc = [], string|null $subject = null, string|null $text = null, string|null $html = null, array $headers = [], array $attachments = [], DateTimeInterface|null $date = null)

Constructor.

Email
email()

Get the underlying Symfony Email instance.

string
__toString()

Get the email as a string.

Details

__construct(string|null $from = null, array|string $to = [], array|string $cc = [], array|string $bcc = [], string|null $subject = null, string|null $text = null, string|null $html = null, array $headers = [], array $attachments = [], DateTimeInterface|null $date = null)

Constructor.

Parameters

string|null $from
array|string $to
array|string $cc
array|string $bcc
string|null $subject
string|null $text
string|null $html
array $headers
array $attachments
DateTimeInterface|null $date

Email email()

Get the underlying Symfony Email instance.

Return Value

Email

string __toString()

Get the email as a string.

Return Value

string