Constructor.
use internal functions setBody, setSubject, setEmailTo and setEmailFrom instead
void
__construct
()
Convert textBody to HTMLBody, convert all links and \n tags
string,
convertTextToHTML
(string $body)
-
string
$body: The body to convert
void
EncodeHeader
( $str, [ $position = 'text'])
Encode string to q encoding.
string
EncodeQ
( $str, [ $position = 'text'])
Encode string to quoted-printable.
string
EncodeQP
( $str)
Gets Email body
String
getBody
()
Gets Email encoding
String
getEmailEncoding
()
Gets Email sender
String
getEmailFrom
()
Gets Email HTML
mixed
getEmailHTML
()
Gets Email recipient
String
getEmailTo
()
Gets Email footer
String
getFooter
()
Gets Email subject
String
getSubject
()
Gets Email template (relative to FS)
String
getTemplate
()
Send the mail
boolean
sendEmail
()
Sets Email hidden copy (Bcc) recipient
boolean
setBCC
(mixed $emailBcc)
-
mixed
$emailBcc: string or array of emails
Sets Email body
void
setBody
(String $body, String $bodyParameters)
-
String
$body
-
String
$bodyParameters
Sets Email copy (Cc) recipient
boolean
setCC
(mixed $emailCc)
-
mixed
$emailCc: string or array of emails
Sets Email encoding
void
setEmailEncoding
([String $emailEncoding = APPLICATION_DEFAULT_ENCODING])
Sets Email sender
void
setEmailFrom
([String $emailFrom = APPLICATION_POSTMASTER_EMAIL])
Sets Email HTML
void
setEmailHTML
([mixed $emailHTML = false])
-
mixed
$emailHTML: : false if no html content set, html string otherwise
Sets Email recipient
boolean
setEmailTo
(mixed $emailTo)
-
mixed
$emailTo: string or array of emails
Sets email for the errors return
boolean
setErrorReturn
(string $error)
-
string
$error: The email to set
Sets the Attach File of the mail
boolean
setFile
( $file, string $to)
-
string
$to: The To to set
-
$file
Sets Email footer
void
setFooter
(String $footer)
Sets the From Name of the mail
boolean
setFromName
(string $from)
-
string
$from: The from name to set
Sets Email subject
void
setSubject
(String $subject, [Boolean $withApplicationLabel = false], [Array $separators = array('[',']')], (array)String $subjectParameters)
-
(array)String
$subjectParameters
-
String
$subject
-
Boolean
$withApplicationLabel: : default false. For subject only.
-
Array
$separators: : to separate the APPLICATION_LABEL.
Sets Email template
boolean
setTemplate
(String $template)
-
String
$template: path (relative to FS)
Sets the To Name of the mail
boolean
setToName
(string $to)
-
string
$to: The to name to set
Inherited Methods
Inherited From CMS_grandFather
CMS_grandFather::autoload()
CMS_grandFather::hasError()
CMS_grandFather::log()
CMS_grandFather::PHPErrorHandler()
CMS_grandFather::raiseError()
CMS_grandFather::setDebug()
CMS_grandFather::setLog()
CMS_grandFather::_raiseError()
CMS_grandFather::__call()