Private Method Details |
set_body |
|
private void set_body( string $text )
|
| |
************************************
* Accessor function to set the body text.* Body text is used if it's not an html* mail being sent.**************************************
|
| Parameter |
|
| string |
$text |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
get_mime |
|
private void get_mime( )
|
| |
************************************
* Accessor function to return the mime* class variable. Purely for debug.**************************************
|
| Returns |
void |
|
add_header |
|
private void add_header( )
|
| |
************************************
* Function to set a header. Shouldn't* really be necessary as you could use* the constructor and send functions,* it's here nonetheless. Takes any number* of arguments, which can be either* strings or arrays full of strings.* this function is php4 only and will* return false otherwise. Will return* true upon finishing.**************************************
|
| Returns |
void |
|
set_charset |
|
private void set_charset( string $charset, string $raw )
|
| |
************************************
* Accessor function to set the content charset.** Function contributed by "Matt"**************************************
|
| Parameter |
|
| string |
$charset |
|
|
Warning: documentation is missing. |
|
|
| string |
$raw |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
get_file |
|
private void get_file( $filename )
|
| |
************************************
* This function will read a file in* from a supplied filename and return* it. This can then be given as the first* argument of the the functions* add_html_image() or add_attachment().**************************************
|
| Parameter |
|
|
$filename |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
find_html_images |
|
private void find_html_images( $images_dir )
|
| |
************************************
* Function for extracting images from* html source. This function will look* through the html code supplied by add_html()* and find any file that ends in one of the* extensions defined in $obj->image_types.* If the file exists it will read it in and* embed it, (not an attachment).** Function contributed by Dan Allen**************************************
|
| Parameter |
|
|
$images_dir |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
add_html |
|
private void add_html( $html, $text, string $images_dir )
|
| |
************************************
* Adds a html part to the mail.* Also replaces image names with* content-id's.**************************************
|
| Parameter |
|
|
$html |
|
|
Warning: documentation is missing. |
|
|
|
$text |
|
|
Warning: documentation is missing. |
|
|
| string |
$images_dir |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
add_html_image |
|
private void add_html_image( $file, string $name, string $c_type )
|
| |
************************************
* Adds an image to the list of embedded* images.**************************************
|
| Parameter |
|
|
$file |
|
|
Warning: documentation is missing. |
|
|
| string |
$name |
|
|
Warning: documentation is missing. |
|
|
| string |
$c_type |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
add_attachment |
|
private void add_attachment( $file, string $name, string $c_type )
|
| |
************************************
* Adds a file to the list of attachments.**************************************
|
| Parameter |
|
|
$file |
|
|
Warning: documentation is missing. |
|
|
| string |
$name |
|
|
Warning: documentation is missing. |
|
|
| string |
$c_type |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
quoted_printable_encode |
|
private void quoted_printable_encode( $input, integer $line_max )
|
| |
************************************
* Encodes text to quoted printable standard.** Function contributed by Allan Hansen**************************************
|
| Parameter |
|
|
$input |
|
|
Warning: documentation is missing. |
|
|
| integer |
$line_max |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
get_encoded_data |
|
private void get_encoded_data( $data, $encoding )
|
| |
************************************
* Function to return encoded text/html* based upon the build params. Don't* like this function name :(**************************************
|
| Parameter |
|
|
$data |
|
|
Warning: documentation is missing. |
|
|
|
$encoding |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
build_html |
|
private void build_html( $orig_boundary )
|
| |
************************************
* Builds html part of email.**************************************
|
| Parameter |
|
|
$orig_boundary |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
build_html_image |
|
private void build_html_image( $i )
|
| |
************************************
* Builds an embedded image part of an* html mail.**************************************
|
| Parameter |
|
|
$i |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
build_part |
|
private void build_part( $input )
|
| |
************************************
* Builds a single part of a multipart* message.**************************************
|
| Parameter |
|
|
$input |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
build_message |
|
private void build_message( array $params )
|
| |
************************************
* Builds the multipart message from the* list ($this->_parts). $params is an* array of parameters that shape the building* of the message. Currently supported are:** $params['html_encoding'] - The type of encoding to use on html. Valid options are* "7bit", "quoted-printable" or "base64" (all without quotes).* 7bit is EXPRESSLY NOT RECOMMENDED. Default is quoted-printable* $params['text_encoding'] - The type of encoding to use on plain text Valid options are* "7bit", "quoted-printable" or "base64" (all without quotes).* Default is 7bit* $params['text_wrap'] - The character count at which to wrap 7bit encoded data. By* default this is 998.**************************************
|
| Parameter |
|
| array |
$params |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
send |
|
private void send( $to_name, $to_addr, $from_name, $from_addr, string $subject, string $headers )
|
| |
************************************
* Sends the mail.not recommended. use the smtp class.**************************************
|
| Parameter |
|
|
$to_name |
|
|
Warning: documentation is missing. |
|
|
|
$to_addr |
|
|
Warning: documentation is missing. |
|
|
|
$from_name |
|
|
Warning: documentation is missing. |
|
|
|
$from_addr |
|
|
Warning: documentation is missing. |
|
|
| string |
$subject |
|
|
Warning: documentation is missing. |
|
|
| string |
$headers |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
get_rfc822 |
|
private void get_rfc822( $to_name, $to_addr, $from_name, $from_addr, string $subject, string $headers )
|
| |
************************************
* Use this method to return the email* in message/rfc822 format. Useful for* adding an email to another email as* an attachment. there's a commented* out example in example.php.** string get_rfc822(string To name,* string To email,* string From name,* string From email,* [string Subject,* string Extra headers])**************************************
|
| Parameter |
|
|
$to_name |
|
|
Warning: documentation is missing. |
|
|
|
$to_addr |
|
|
Warning: documentation is missing. |
|
|
|
$from_name |
|
|
Warning: documentation is missing. |
|
|
|
$from_addr |
|
|
Warning: documentation is missing. |
|
|
| string |
$subject |
|
|
Warning: documentation is missing. |
|
|
| string |
$headers |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|