Draft final readonly class
Minn\Mail\Draft · public/minn/src/Minn/Mail/Draft.php · 66 lines
Everything a message is composed from: the transport it goes out on (which decides the line ending, the header line length, and where To, Subject and Bcc are written), the envelope, the content, the headers, and the attachments as [path or data, file name, name, encoding, type, is data, disposition, content id]. $toHeader is "list" (To, or undisclosed-recipients when there is neither To nor Cc) or "omit" (one message per recipient, the address given to each send instead).
Constants and properties
| const | VERSION = '7.1.1' | |
| prop | readonly string $mailer | Promoted from the constructor. |
| prop | readonly string $eol | Promoted from the constructor. |
| prop | readonly string $charset | Promoted from the constructor. |
| prop | readonly string $contentType | Promoted from the constructor. |
| prop | readonly string $encoding | Promoted from the constructor. |
| prop | readonly string $subject | Promoted from the constructor. |
| prop | readonly string $body | Promoted from the constructor. |
| prop | readonly string $altBody | Promoted from the constructor. |
| prop | readonly string $ical | Promoted from the constructor. |
| prop | readonly string $from | Promoted from the constructor. |
| prop | readonly string $fromName | Promoted from the constructor. |
| prop | readonly array $to | Promoted from the constructor. |
| prop | readonly array $cc | Promoted from the constructor. |
| prop | readonly array $bcc | Promoted from the constructor. |
| prop | readonly array $replyTo | Promoted from the constructor. |
| prop | readonly string $messageId | Promoted from the constructor. |
| prop | readonly string $messageDate | Promoted from the constructor. |
| prop | readonly ?int $priority | Promoted from the constructor. |
| prop | readonly string $xMailer | Promoted from the constructor. |
| prop | readonly string $confirmReadingTo | Promoted from the constructor. |
| prop | readonly array $customHeaders | Promoted from the constructor. |
| prop | readonly array $attachments | Promoted from the constructor. |
| prop | readonly string $toHeader | Promoted from the constructor. |
Public
| new | __construct(string $mailer, string $eol, string $charset, string $contentType, string $encoding, string $subject, string $body, string $altBody, string $ical, string $from, string $fromName, array $to, array $cc, array $bcc, array $replyTo, string $messageId, string $messageDate, ?int $priority, string $xMailer, string $confirmReadingTo, array $customHeaders, array $attachments, string $toHeader = 'list')# |
| |||||||||
| method | lineLength(): int# | The longest header line the transport takes before it must fold. | |||||||||
| method | encodeHeader(string $text, string $position = 'text'): string# | Header text encoded for this message's charset and transport. | |||||||||
| method | messageType(): string# | Which parts the message has: plain, or "alt", "inline", "attach" joined by "_". |
Nothing matches.