yana

phpDocumentor v 1.4.0

Class FormMailer

Description

create and send mails from form data
  • access: public
Object
   |
   --FormMailer
Variable Summary
array $content
string $footline
string $headline
string $subject
Method Summary
  • FormMailer FormMailer ()
  • string equals (object $anotherObject)
  • bool mail (string $recipient, string $subject, array &$formdata)
  • bool send (string $recipient)

Variables

array $content = array()
  • access: public
string $footline = ""
  • access: public
string $headline = ""
  • access: public
string $subject = ""
  • access: public

Methods

constructor
FormMailer FormMailer ()
Description:
Creates a new instance of this class.
compare with another object
string equals (
object $anotherObject
)
List of parameters:
Name Type Description
$anotherObject object
Description:
Returns bool(true) if this object and $anotherObject are equal and bool(false) otherwise.
Two instances are considered equal if and only if they are both objects of the same class and their attributes are equal.
  • access: public

Redefinition of: Object::equals()

create an automatically formated e.mail from an array of form data
bool mail (
string $recipient, string $subject, array &$formdata
)
List of parameters:
Name Type Description
$recipient string mail address
$subject string subject of the mail
&$formdata array form-data submitted by the user
Description:
Returns bool(true) on success and bool(false) on error.
  • since: 2.8
  • access: public
send an e-mail
bool send (
string $recipient
)
List of parameters:
Name Type Description
$recipient string mail address
Description:
Sends the current contents to $recipient, where $recipient should be a valid mail address.
Returns bool(true) on success or bool(false) on error.
  • access: public
inherited from base classes

Inherited From Object

Documentation generated on Sat, 03 Jan 2009 22:22:26 +0100 by phpDocumentor 1.4.0

yana author: Thomas MeyerHomepage: www.yanaframework.net