Class SGL_Emailer

Description

Wrapper class for PEAR::Mail.

Located in /SGL/Emailer.php (line 52)


	
			
Variable Summary
 mixed $headers
 mixed $html
 mixed $options
Method Summary
 SGL_Emailer SGL_Emailer ([ $options = array()])
 string cleanMailInjection (mixed $headers)
 void &factory ()
 void prepare ()
 void send ()
Variables
mixed $footerTemplate = '' (line 55)
mixed $headers = array() (line 57)
mixed $headerTemplate = '' (line 54)
mixed $html = '' (line 56)
mixed $options = array(
'toEmail' => '',
'toRealName' => '',
'fromEmail' => '',
'fromRealName' => '',
'replyTo' => '',
'subject' => '',
'body' => '',
'template' => '',
'type' => '',
'username' => '',
'password' => '',
'siteUrl' => SGL_BASE_URL,
'siteName' => '',
'crlf' => '',
'filepath' => '',
'mimetype' => '',
'Cc' => '',
'Bcc' => '',
'sendDelay' => '',
'groupID' => '',
)
(line 58)
Methods
Constructor SGL_Emailer (line 81)
SGL_Emailer SGL_Emailer ([ $options = array()])
  • $options
cleanMailInjection (line 264)

Takes a string or an associative array of mail headers with each key representing a header's name and a value representing a header's value. The function removes every additional header from each value to prevent mail injection attacks.

string cleanMailInjection (mixed $headers)
  • mixed $headers
factory (line 206)
void &factory ()
prepare (line 100)
void prepare ()
send (line 133)
void send ()

Documentation generated on Tue, 23 Feb 2010 18:14:29 +0000 by phpDocumentor 1.4.3