Class Sylar_Mail

Description

Mail

Class to send mail in txt and html format

Located in /sylar/classes/common/communication/Mail.php (line 38)


	
			
Method Summary
 void __construct ([string $sMailType = "txt"], [string $sFrom = null], [string $sReplyTo = null])
 void __destruct ()
 string getFrom ()
 string getHeader ()
 string getMailType ()
 string getMessage ()
 string getObject ()
 string getReplyTo ()
 array getSend_BCC ()
 array getSend_CC ()
 array getSend_To ()
 void send ([string $sObject = null], [string $sMessage = null], [string $sCharSet = null])
 void setFrom (string $sFrom)
 void setHeader (mixed $sHeader, string $sFrom)
 void setMailType (mixed $sMailType, string $sFrom)
 void setMessage (mixed $sMessage, string $sFrom)
 void setObject (mixed $sObject, string $sFrom)
 void setReplyTo (mixed $sReplyTo, string $sFrom)
 void setSend_BCC (mixed $aSend_BCC, array $sFrom)
 void setSend_CC (mixed $aSend_CC, array $sFrom)
 void setSend_To (mixed $aSendTo, array $sFrom)
 boolean validateAddress (string $address)
Methods
Constructor __construct (line 125)

Constructor

void __construct ([string $sMailType = "txt"], [string $sFrom = null], [string $sReplyTo = null])
  • string $sMailType: default is txt
  • string $sFrom
  • string $sReplyTo
Destructor __destruct (line 147)
void __destruct ()
getFrom (line 170)
  • access: public
string getFrom ()
getHeader (line 245)
  • access: public
string getHeader ()
getMailType (line 300)
  • access: public
string getMailType ()
getMessage (line 275)
  • access: public
string getMessage ()
getObject (line 260)
  • access: public
string getObject ()
getReplyTo (line 185)
  • access: public
string getReplyTo ()
getSend_BCC (line 230)
  • access: public
array getSend_BCC ()
getSend_CC (line 215)
  • access: public
array getSend_CC ()
getSend_To (line 200)
  • access: public
array getSend_To ()
send (line 321)

Send the e-mail It prepare header, object and all the other field and send the e-mail

  • access: public
void send ([string $sObject = null], [string $sMessage = null], [string $sCharSet = null])
  • string $sObject
  • string $sMessage
  • string $sCharSet
setFrom (line 163)
  • access: public
void setFrom (string $sFrom)
  • string $sFrom
setHeader (line 239)
  • access: public
void setHeader (mixed $sHeader, string $sFrom)
  • string $sFrom
setMailType (line 285)

It also check if specified type exists and is supported

  • access: public
void setMailType (mixed $sMailType, string $sFrom)
  • string $sFrom
setMessage (line 269)
  • access: public
void setMessage (mixed $sMessage, string $sFrom)
  • string $sFrom
setObject (line 254)
  • access: public
void setObject (mixed $sObject, string $sFrom)
  • string $sFrom
setReplyTo (line 179)
  • access: public
void setReplyTo (mixed $sReplyTo, string $sFrom)
  • string $sFrom
setSend_BCC (line 224)
  • access: public
void setSend_BCC (mixed $aSend_BCC, array $sFrom)
  • array $sFrom
setSend_CC (line 209)
  • access: public
void setSend_CC (mixed $aSend_CC, array $sFrom)
  • array $sFrom
setSend_To (line 194)
  • access: public
void setSend_To (mixed $aSendTo, array $sFrom)
  • array $sFrom
validateAddress (line 352)

a temporary address controls...

  • access: public
  • todo: rewrite this method
boolean validateAddress (string $address)
  • string $address

Documentation generated on Thu, 24 Apr 2008 16:14:18 +0200 by phpDocumentor 1.3.0RC3