Mime is the underbelly for Messages, Attachments, Parts, Embedded Images, Forwarded Mail, etc
In fact, every single component of the composed email is simply a new Mime document nested inside another When you piece an email together in this way you see just how straight-forward it really is
Located in /Swift/Message/Mime.php (line 23)
| Class | Description |
|---|---|
| Swift_Message_Attachment | Attachment component for Swift Mailer |
| Swift_Message_Part | MIME Part body component for Swift Mailer |
| Swift_Message | Swift Message class |
Constructor
Nest a child mime part in this document
Compile the entire MIME document into a string The returned string may be used in other documents if needed.
Get the data in the format suitable for sending
Get a child document, identified by $id
Get the content type which has been set
The MIME 1.0 Content-Type is provided as a string
Return the string which makes up the body of this MIME document
Get the encoding format used in this document
Get the line ending sequence
Get the level at which this mime part would appear in a document
One of "mixed", "alternative" or "related"
Check if a child exists identified by $id
List the IDs of all children in this document
Get the total number of children present in this document
Execute any logic needed prior to building
Remove a part from the document
Set the content type of this MIME document
Specify the string which makes up the body of this message HINT: You can always nest another MIME document here if you call it's build() method.
$data can be an object of Swift_File or a string
Set the encoding format to be used on the body of the document
Replace the current headers with new ones
DO NOT DO THIS UNLESS YOU KNOW WHAT YOU'RE DOING!
Set the line ending character to use
Set the level at which this document would appear in a nested email
Can be (in order of significance) "mixed", "related" or "alternative" or null
Set the size at which lines wrap around (includes the CRLF)
Reset the entire cache state from this branch of the tree and traversing down through the children
HTML
= "text/html"
(line 32)
Constant for HTML emails
MISC
= "application/octet-stream"
(line 36)
Constant for miscellaneous mime type
PLAIN
= "text/plain"
(line 28)
Constant for plain-text emails
SAFE_LENGTH
= 1000
(line 40)
Constant for safe line length in almost all places
VERY_SAFE_LENGTH
= 76
(line 44)
Constant for really safe line length
Documentation generated on Tue, 06 Mar 2007 23:32:26 +0000 by phpDocumentor 1.3.1