[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/ -> functions_messenger.php (summary)

(no description)

Copyright: (c) 2005 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 1688 lines (43 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

messenger:: (22 methods):
  messenger()
  reset()
  to()
  cc()
  bcc()
  im()
  replyto()
  from()
  subject()
  headers()
  anti_abuse_headers()
  set_mail_priority()
  template()
  assign_vars()
  assign_block_vars()
  send()
  error()
  save_queue()
  generate_message_id()
  build_header()
  msg_email()
  msg_jabber()

queue:: (8 methods):
  queue()
  init()
  put()
  lock()
  unlock()
  process()
  save()
  smtpmail()

smtp_class:: (13 methods):
  smtp_class()
  add_backtrace()
  server_send()
  server_parse()
  close_session()
  log_into_server()
  pop_before_smtp()
  plain()
  login()
  cram_md5()
  digest_md5()
  mail_encode()
  phpbb_mail()


Class: messenger  - X-Ref

Messenger

messenger($use_queue = true)   X-Ref
Constructor


reset()   X-Ref
Resets all the data (address, template file, etc etc) to default


to($address, $realname = '')   X-Ref
Sets an email address to send to


cc($address, $realname = '')   X-Ref
Sets an cc address to send to


bcc($address, $realname = '')   X-Ref
Sets an bcc address to send to


im($address, $realname = '')   X-Ref
Sets a im contact to send to


replyto($address)   X-Ref
Set the reply to address


from($address)   X-Ref
Set the from address


subject($subject = '')   X-Ref
set up subject for mail


headers($headers)   X-Ref
set up extra mail headers


anti_abuse_headers($config, $user)   X-Ref
Adds X-AntiAbuse headers

param: array $config        Configuration array
param: user $user            A user object
return: null

set_mail_priority($priority = MAIL_NORMAL_PRIORITY)   X-Ref
Set the email priority


template($template_file, $template_lang = '', $template_path = '')   X-Ref
Set email template to use


assign_vars($vars)   X-Ref
assign variables to email template


assign_block_vars($blockname, $vars)   X-Ref
No description

send($method = NOTIFY_EMAIL, $break = false)   X-Ref
Send the mail out to the recipients set previously in var $this->addresses


error($type, $msg)   X-Ref
Add error message to log


save_queue()   X-Ref
Save to queue


generate_message_id()   X-Ref
Generates a valid message id to be used in emails

return: string message id

build_header($to, $cc, $bcc)   X-Ref
Return email header


msg_email()   X-Ref
Send out emails


msg_jabber()   X-Ref
Send jabber message out


Class: queue  - X-Ref

handling email and jabber queue

queue()   X-Ref
constructor


init($object, $package_size)   X-Ref
Init a queue object


put($object, $scope)   X-Ref
Put object in queue


lock()   X-Ref
Obtains exclusive lock on queue cache file.
Returns resource representing the lock


unlock($lock_fp)   X-Ref
Releases lock on queue cache file, using resource obtained from lock()


process()   X-Ref
Process queue
Using lock file


save()   X-Ref
Save queue


smtpmail($addresses, $subject, $message, &$err_msg, $headers = false)   X-Ref
Replacement or substitute for PHP's mail command


Class: smtp_class  - X-Ref

SMTP Class
Auth Mechanisms originally taken from the AUTH Modules found within the PHP Extension and Application Repository (PEAR)
See docs/AUTHORS for more details

smtp_class()   X-Ref
No description

add_backtrace($message)   X-Ref
Add backtrace message for debugging


server_send($command, $private_info = false)   X-Ref
Send command to smtp server


server_parse($response, $line)   X-Ref
We use the line to give the support people an indication at which command the error occurred


close_session(&$err_msg)   X-Ref
Close session


log_into_server($hostname, $username, $password, $default_auth_method)   X-Ref
Log into server and get possible auth codes if neccessary


pop_before_smtp($hostname, $username, $password)   X-Ref
Pop before smtp authentication


plain($username, $password)   X-Ref
Plain authentication method


login($username, $password)   X-Ref
Login authentication method


cram_md5($username, $password)   X-Ref
cram_md5 authentication method


digest_md5($username, $password)   X-Ref
digest_md5 authentication method
A real pain in the ***


mail_encode($str, $eol = "\r\n")   X-Ref
Encodes the given string for proper display in UTF-8.

This version is using base64 encoded data. The downside of this
is if the mail client does not understand this encoding the user
is basically doomed with an unreadable subject.

Please note that this version fully supports RFC 2045 section 6.8.

param: string $eol End of line we are using (optional to be backwards compatible)

phpbb_mail($to, $subject, $msg, $headers, $eol, &$err_msg)   X-Ref
Wrapper for sending out emails with the PHP's mail function




Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1