extends |
Message |
|---|
| Methods | ||
|---|---|---|
public
|
subject(string $subject): $this
|
# |
public
|
getSubject(): ?string
|
# |
public
|
date(DateTimeInterface $dateTime): $this
|
# |
public
|
getDate(): ?DateTimeImmutable
|
# |
public
|
returnPath(Address|string $address): $this
|
# |
public
|
getReturnPath(): ?Address
|
# |
public
|
sender(Address|string $address): $this
|
# |
public
|
getSender(): ?Address
|
# |
public
|
addFrom(Address|string ...$addresses): $this
|
# |
public
|
from(Address|string ...$addresses): $this
|
# |
public
|
getFrom(): Address[]
|
# |
public
|
addReplyTo(Address|string ...$addresses): $this
|
# |
public
|
replyTo(Address|string ...$addresses): $this
|
# |
public
|
getReplyTo(): Address[]
|
# |
public
|
addTo(Address|string ...$addresses): $this
|
# |
public
|
to(Address|string ...$addresses): $this
|
# |
public
|
getTo(): Address[]
|
# |
public
|
addCc(Address|string ...$addresses): $this
|
# |
public
|
cc(Address|string ...$addresses): $this
|
# |
public
|
getCc(): Address[]
|
# |
public
|
addBcc(Address|string ...$addresses): $this
|
# |
public
|
bcc(Address|string ...$addresses): $this
|
# |
public
|
getBcc(): Address[]
|
# |
public
|
priority(int $priority): $this
|
# |
public
|
getPriority(): int
|
# |
public
|
text(resource|string|null $body, string $charset = 'utf-8'): $this
|
# |
public
|
getTextBody(): resource|string|null
|
# |
public
|
getTextCharset(): ?string
|
# |
public
|
html(resource|string|null $body, string $charset = 'utf-8'): $this
|
# |
public
|
getHtmlBody(): resource|string|null
|
# |
public
|
getHtmlCharset(): ?string
|
# |
public
|
attach(resource|string $body, string $name = null, string $contentType = null): $this
|
# |
public
|
attachFromPath(string $path, string $name = null, string $contentType = null): $this
|
# |
public
|
embed(resource|string $body, string $name = null, string $contentType = null): $this
|
# |
public
|
embedFromPath(string $path, string $name = null, string $contentType = null): $this
|
# |
public
|
attachPart(DataPart $part): $this
|
# |
public
|
addPart(DataPart $part): $this
|
# |
public
|
getAttachments(): DataPart[]
|
# |
public
|
getBody(): AbstractPart
|
# |
public
|
ensureValidity(): void
|
# |
private
|
ensureBodyValid(): void
|
# |
private
|
generateBody(): AbstractPart
|
# |
private
|
prepareParts(): ?array
|
# |
private
|
setHeaderBody(string $type, string $name, $body): $this
|
# |
private
|
addListAddressHeaderBody(string $name, array $addresses): $this
|
# |
private
|
setListAddressHeaderBody(string $name, array $addresses): $this
|
# |
| Methods inherited from Symfony\Component\Mime\Message |
|---|
__construct(), __clone(), setBody(), setHeaders(), getHeaders(), getPreparedHeaders(), toString(), toIterable(), generateMessageId(), __serialize(), __unserialize() |
| Constants | ||
|---|---|---|
public
|
PRIORITY_HIGHEST = 1
|
# |
public
|
PRIORITY_HIGH = 2
|
# |
public
|
PRIORITY_NORMAL = 3
|
# |
public
|
PRIORITY_LOW = 4
|
# |
public
|
PRIORITY_LOWEST = 5
|
# |
private
|
PRIORITY_MAP = [
self::PRIORITY_HIGHEST => 'Highest',
self::PRIORITY_HIGH => 'High',
self::PRIORITY_NORMAL => 'Normal',
self::PRIORITY_LOW => 'Low',
self::PRIORITY_LOWEST => 'Lowest',
]
|
# |
| Properties | |||
|---|---|---|---|
private
|
resource|string|null
|
$text
|
# |
private
|
?string
|
$textCharset = null
|
# |
private
|
resource|string|null
|
$html
|
# |
private
|
?string
|
$htmlCharset = null
|
# |
private
|
array
|
$attachments = []
|
# |
private
|
?AbstractPart
|
$cachedBody = null
|
# |
| Properties inherited from Symfony\Component\Mime\Message |
|---|
$headers, $body |
| Properties inherited from Symfony\Component\Mime\RawMessage |
|---|
$message |