DeliverDeliver Class - called to actually deliver the message
This class is called by compose.php and other code that needs to send messages. All delivery functionality should be centralized in this class.
Do not place UI code in this class, as UI code should be placed in templates going forward.
Located in /nasmail/class/deliver/Deliver.class.php (line 35)
| Class | Description |
|---|---|
Deliver_IMAP
|
This class is incomplete and entirely undocumented. |
Deliver_SendMail
|
Delivers messages using the sendmail binary |
Deliver_SMTP
|
Deliver messages using SMTP |
handle
initStream
(Message $message, [integer $length = 0], [string $host = ''], [ $port = ''], [string $user = ''], [string $pass = ''])
string
prepareRFC822_Header
(Rfc822Header $rfc822_header, Rfc822Header $reply_rfc822_header, integer &$raw_length)
calculate_references (line 753)
function calculate_references - calculate correct References string Adds the current message ID, and makes sure it doesn't grow forever, to that extent it drops message-ID's in a smart way until the string length is under the recommended value of 1000 ("References: <986>\r\n").
It always keeps the first and the last three ID's.
clean_crlf (line 222)
function clean_crlf - change linefeeds and newlines to legal characters
The SMTP format only allows CRLF as line terminators. This function replaces illegal teminators with the correct terminator.
foldLine (line 612)
function foldLine - for cleanly folding of headerlines
getBCC (line 295)
function getBCC - reserved for extended functionality
This function is not yet implemented. Reserved for extended functionality.
initStream (line 284)
function initStream - reserved for extended functionality
This function is not yet implemented. Reserved for extended functionality.
ip2hex (line 788)
Converts ip address to hexadecimal string
Function is used to convert ipv4 and ipv6 addresses to hex strings. It removes all delimiter symbols from ip addresses, converts decimal ipv4 numbers to hex and pads strings in order to present full length address. ipv4 addresses are represented as 8 byte strings, ipv6 addresses are represented as 32 byte string.
If function fails to detect address format, it returns unprocessed string.
mail (line 45)
function mail - send the message parts to the SMTP stream
mimeBoundary (line 705)
function mimeBoundary - calculates the mime boundary to use
This function will generate a random mime boundary base part for the message if the boundary has not already been set.
prepareMIME_Header (line 307)
function prepareMIME_Header - creates the mime header
prepareRFC822_Header (line 383)
function prepareRFC822_Header - prepares the RFC822 header string from Rfc822Header object(s)
This function takes the Rfc822Header object(s) and formats them into the RFC822Header string to send to the SMTP server as part of the SMTP message.
preWriteToStream (line 255)
function preWriteToStream - reserved for extended functionality
This function is not yet implemented. Reserved for extended functionality.
strip_crlf (line 239)
function strip_crlf - strip linefeeds and newlines from a string
The SMTP format only allows CRLF as line terminators. This function strips all line terminators from the string.
timezone (line 721)
function timezone - Time offset for correct timezone
writeBody (line 80)
function writeBody - generate and write the mime boundaries around each part to the stream
Recursively formats and writes the MIME boundaries of the $message to the output stream.
writeBodyPart (line 137)
function writeBodyPart - write each individual mimepart
Recursively called by WriteBody to write each mime part to the SMTP stream
writeToStream (line 266)
function writeToStream - write data to the SMTP stream
Documentation generated on Sun, 22 Nov 2009 17:36:26 +0200 by phpDocumentor 1.4.3