cvs: pear /Net_SMTP/docs guide.txt

From: Date: Sun, 14 Sep 2003 23:21:26 +0000
Subject: cvs: pear /Net_SMTP/docs guide.txt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-12736@lists.php.net to get a copy of this message
jon Sun Sep 14 19:21:26 2003 EDT Modified files: /pear/Net_SMTP/docs guide.txt Log: Some small updates and cleanups to the Net_SMTP guide. Index: pear/Net_SMTP/docs/guide.txt diff -u pear/Net_SMTP/docs/guide.txt:1.1 pear/Net_SMTP/docs/guide.txt:1.2 --- pear/Net_SMTP/docs/guide.txt:1.1 Mon Aug 11 03:09:00 2003 +++ pear/Net_SMTP/docs/guide.txt Sun Sep 14 19:21:26 2003 @@ -8,8 +8,8 @@ :Author: Jon Parise :Contact: jon@php.net -:Date: $Date: 2003/08/11 07:09:00 $ -:Revision: $Revision: 1.1 $ +:Date: $Date: 2003/09/14 23:21:26 $ +:Revision: $Revision: 1.2 $ .. contents:: Table of Contents .. section-numbering:: @@ -88,7 +88,7 @@ trivial, LOGIN is not considered a secure authentication method and should be avoided. -.. _Base64: http://www.freesoft.org/CIE/RFC/1521/7.htm +.. _Base64: http://www.php.net/manual/en/function.base64-encode.php PLAIN ----- @@ -99,18 +99,18 @@ Data Quoting ============ -By default, all outbound string data is quoted with accordance to SMTP -standards. That means that all native Unix (\\n) and Mac (\\r) line +By default, all outbound string data is quoted in accordance with SMTP +standards. This means that all native Unix (\\n) and Mac (\\r) line endings are converted to Internet-standard CRLF (\\r\\n) line endings. -Also, because the SMTP protocol uses a single leading period (.) to -signal an end to the data, single leading periods in the original data +Also, because the SMTP protocol uses a single leading period (.) to signal +an end to the message data, single leading periods in the original data string are "doubled" (e.g. ".."). These string transformation can be expensive when large blocks of data are involved. For example, the Net_SMTP package is not aware of MIME parts (it just sees the MIME message as one big string of characters), so it is not able to skip non-text attachments when searching for characters that may -need to be converted based on the above rules. +need to be quoted. Because of this, it is possible to extend the Net_SMTP class in order to implement your own custom quoting routine. Just create a new class based on @@ -127,8 +127,8 @@ } Note that the $data parameter will be passed to the quotedata() function -by reference_. That means that you can operate directly on $data. This -avoids the overhead of copying a large $data string to and from the +by reference_. This means that you can operate directly on $data. It +also the overhead of copying a large $data string to and from the quotedata() method. .. _by reference: http://www.php.net/manual/en/language.references.pass.php @@ -136,9 +136,9 @@ Debugging ========= -The Net_SMTP package contains built-in debugging output routines. Because -they are disabled by default, they must be explicitly enabled via the -setDebug() method:: +The Net_SMTP package contains built-in debugging output routines (disabled +by default). Debugging output must be explicitly enabled via the setDebug() +method:: $smtp->setDebug(true);

« previous php.pear.cvs (#12736) next »