The MailServer Module
This module provides a simple wrapper around PHP's IMAP library while adding some functionality to make interacting with the mail server as easy as possible.
This module can be used by other modules as follows:-
[mailserver] hostname = imap.server.com : Name of the email host to connect to port = number : Port number to connect to for the above host root = Mail/ : Root folder on the server secure = true/false : Set to true to never send password as plain text ssl = true/false : Set to true to connect using SSL novalidate-cert = true/false : Set to true if no need to validate the server certificate tls = true/false : Set to true to force usage of tls notls = true/false : Set to true to not use tls even if available on server
The defaults are as below: [mailserver] hostname = localhost port = 143 root = '' secure = false ssl = false novalidate-cert = false tls = false notls = false
Located in /modules/MailServer.php (line 38)
Module | --MailServer
Inherited from Module
Module::$application
Module::$controller
Module::$database
Module::$error
Module::$error_strings
Module::$exceptions
Module::$output
Module::$queries
Module::$sql
Module::$template_file
Module::$use_render
Module::$use_template_library
Module::$use_view
Constructor for the email server module
The constructor registers all error messages used by this module.
Connect to the server in a half-open mode (don't select any mailbox)
Connect to the server using the username and password specified. This action should be invoked from another module before executing any other actions.
Function loads the configuration from config file.
Copy the specified messages to the specified mailbox
Create the specified mailbox
Delete the specified mailbox
Delete specified messages
Expunge currently selected mailbox
Select a mailbox using $this->open_mailbox($mailbox_name);
Get all the message headers for the current mailbox
The object returned has several members which are documented here: http://www.php.net/manual/en/function.imap-headerinfo.php
The Msgno member value is replaced with the message UID instead.
Get the configuration from config file
Load all configuration items under section 'mailserver' in the main configuration file. Default values selected are described in the module description.
Get the status information for the specified mailbox
Get the raw headers for the specified message uid
Get only subscribed mailboxes for current connection
Mark specified messages as read
Mark specified messages as unread
Move the specified messages to the specified mailbox
Open the specified mailbox
Call $this->connect($username, $password ) before calling this function
Register all error messages
This action is called by the constructor. For internal use only.
Rename the specified mailbox as requested
Subscribe to the specified mailbox
Undelete specified messages
Unsubscribe from the specified mailbox
Inherited From Module
Module::disable_render()
Module::disable_template_library()
Module::disable_view()
Module::enable_render()
Module::enable_template_library()
Module::enable_view()
Module::exec_module_action()
Module::get_error_strings()
Module::get_exceptions()
Module::get_queries()
Module::get_templating_library_paths()
Module::initialize()
Module::PHPTAL_render()
Module::register_error()
Module::register_exception()
Module::register_query()
Module::render()
Module::set_references()
Module::set_template_file()
Module::Smarty_render()
Documentation generated on Sat, 23 Jun 2007 21:28:21 -0500 by phpDocumentor 1.3.2