Comments: on this page. Click to read or post your own.

Class TestMailer

Description

Located in /sapphire/dev/TestMailer.php (line 6)

Object
   |
   --Mailer
      |
      --TestMailer
Variable Summary
mixed $emailsSent
Method Summary
void clearEmails ()
An findEmail ($to $to, [$from $from = null], [$subject $subject = null], [$content $content = null])
void sendHTML ( $to,  $from,  $subject,  $htmlContent, [ $attachedFiles = false], [ $customHeaders = false], [ $plainContent = false], [ $inlineImages = false])
void sendPlain ( $to,  $from,  $subject,  $plainContent, [ $attachedFiles = false], [ $customHeaders = false])
Variables
Methods
clearEmails (line 52)

Clear the log of emails sent

void clearEmails ()
findEmail (line 65)

Search for an email that was sent.

All of the parameters can either be a string, or, if they start with "/", a PREG-compatible regular expression.

  • return: array containing the keys: 'type','to','from','subject','content', 'plainContent','attachedFiles','customHeaders','htmlContent',inlineImages'
An findEmail ($to $to, [$from $from = null], [$subject $subject = null], [$content $content = null])
  • $to $to
  • $from $from
  • $subject $subject
  • $content $content
sendHTML (line 32)

Send a multi-part HTML email TestMailer will merely record that the email was asked to be sent, without sending anything.

void sendHTML ( $to,  $from,  $subject,  $htmlContent, [ $attachedFiles = false], [ $customHeaders = false], [ $plainContent = false], [ $inlineImages = false])
  • $to
  • $from
  • $subject
  • $htmlContent
  • $attachedFiles
  • $customHeaders
  • $plainContent
  • $inlineImages

Redefinition of:
Mailer::sendHTML()
Send a multi-part HTML email
sendPlain (line 13)

Send a plain-text email.

TestMailer will merely record that the email was asked to be sent, without sending anything.

void sendPlain ( $to,  $from,  $subject,  $plainContent, [ $attachedFiles = false], [ $customHeaders = false])
  • $to
  • $from
  • $subject
  • $plainContent
  • $attachedFiles
  • $customHeaders

Redefinition of:
Mailer::sendPlain()
Send a plain-text email

Inherited Methods

Inherited From Mailer

Mailer::sendHTML()
Mailer::sendPlain()

Inherited From Object

Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:46:56 +1300 by phpDocumentor 1.3.2