[ Index ]

PHP Cross Reference of osCMax 2.0.4




/includes/classes/ -> email.php (summary)

(no description)

File Size: 580 lines (19 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

email:: (17 methods):

Class: email  - X-Ref

email($headers = '')   X-Ref
No description

get_file($filename)   X-Ref
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().

find_html_images($images_dir)   X-Ref
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

add_text($text = '')   X-Ref
Adds plain text. Use this function
when NOT sending html email

add_html($html, $text = NULL, $images_dir = NULL)   X-Ref
Adds a html part to the mail.
Also replaces image names with

add_html_image($file, $name = '', $c_type='application/octet-stream')   X-Ref
Adds an image to the list of embedded

add_attachment($file, $name = '', $c_type='application/octet-stream', $encoding = 'base64')   X-Ref
Adds a file to the list of attachments.

add_text_part(&$obj, $text)   X-Ref
No description

add_html_part(&$obj)   X-Ref
No description

add_mixed_part()   X-Ref
No description

add_alternative_part(&$obj)   X-Ref
No description

add_related_part(&$obj)   X-Ref
No description

add_html_image_part(&$obj, $value)   X-Ref
No description

add_attachment_part(&$obj, $value)   X-Ref
No description

build_message($params = '')   X-Ref
No description

send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $headers = '')   X-Ref
Sends the mail.

get_rfc822($to_name, $to_addr, $from_name, $from_addr, $subject = '', $headers = '')   X-Ref
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])

Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7