Comments: on this page. Click to read or post your own.
Class to support sending emails.
Located in /sapphire/email/Email.php (line 26)
Object | --ViewableData | --Email
| Class | Description |
|---|---|
| Member_SignupEmail | Class used as template to send an email to new members |
| Member_ChangePasswordEmail | Class used as template to send an email saying that the password has been |
| Member_ForgotPasswordEmail | Class used as template to send the forgot password email |
| Order_ReceiptEmail | This class handles the receipt email which gets sent once an order is made. |
| Order_StatusEmail | This class handles the status email which is sent after changing the attributes in the report (eg. status changed to 'Shipped'). |
The default administrator email address. This will be set in the config on a site-by-site basis
A map of header-name -> header-value
Inherited from ViewableData
ViewableData::$casting
ViewableData::$castingHelperPair_cache
ViewableData::$customisedObj
ViewableData::$failover
ViewableData::$iteratorPos
ViewableData::$iteratorTotalItems
ViewableData::$namedAs
ViewableData::$parent
ViewableData::$_natural_cache
ViewableData::$_object_cache
ViewableData::$_xml_cache
Inherited from Object
Object::$builtInMethods
Object::$class
Object::$classConstructed
Object::$extensions
Object::$extension_instances
Object::$extraMethods
Object::$extraStatics
Object::$statics
Object::$static_cached
BCC every email generated by the Email class to the given address.
It won't affect the original delivery in the same way that send_all_emails_to does. It just adds a BCC header with the given email address. Note that you can only call this once - subsequent calls will overwrite the configuration variable.
This can be used when you have a system that relies heavily on email and you want someone to be checking all correspondence.
if(Director::isLive()) Email::cc_all_emails_to("supportperson@example.com")
CC every email generated by the Email class to the given address.
It won't affect the original delivery in the same way that send_all_emails_to does. It just adds a CC header with the given email address. Note that you can only call this once - subsequent calls will overwrite the configuration variable.
This can be used when you have a system that relies heavily on email and you want someone to be checking all correspondence.
if(Director::isLive()) Email::cc_all_emails_to("supportperson@example.com")
Get the mailer.
Encode an email-address to protect it from spambots.
At the moment only simple string substitutions, which are not 100% safe from email harvesting.
Send every email generated by the Email class to the given address.
It will also add " [addressed to (email), cc to (email), bcc to (email)]" to the end of the subject line This can be used when testing, by putting a command like this in your _config.php file
if(!Director::isLive()) Email::send_all_emails_to("someone@example.com")
Used as a default sender address in the Email class unless overwritten. Also shown to users on live environments as a contact address on system error pages.
Set the mailer.
This can be used to provide a mailer other than the default, for testing, for example.
Validates the email address. Returns true of false
Create a new email.
Add a custom header to this value.
Useful for implementing all those cool features that we didn't think of.
Debugging help
Used by SSViewer templates to detect if we're rendering an email template rather than a page template
Checks for RFC822-valid email format.
Load all the template variables into the internal variables, including
the template into body. Called before send() or debugSend() $isPlain=true will cause the template to be ignored, otherwise the GenericEmail template will be used and it won't be plain email :)
Populate this email template with values.
This may be called many times.
Send the email.
Send the email in plaintext
Inherited From ViewableData
ViewableData::ATT_val()
ViewableData::BaseHref()
ViewableData::buildCastingHelperCache()
ViewableData::cachedCall()
ViewableData::castingHelper()
ViewableData::castingHelperPair()
ViewableData::castingObjectCreator()
ViewableData::castingObjectCreatorPair()
ViewableData::CSSClasses()
ViewableData::CurrentMember()
ViewableData::CurrentPage()
ViewableData::customise()
ViewableData::Debug()
ViewableData::defineMethods()
ViewableData::escapeTypeForField()
ViewableData::Even()
ViewableData::EvenOdd()
ViewableData::First()
ViewableData::FirstLast()
ViewableData::getField()
ViewableData::getIterator()
ViewableData::getXMLValues()
ViewableData::hasField()
ViewableData::HasPerm()
ViewableData::hasValue()
ViewableData::i18nLocale()
ViewableData::IsAjax()
ViewableData::iteratorProperties()
ViewableData::JS_val()
ViewableData::Last()
ViewableData::Me()
ViewableData::Middle()
ViewableData::MiddleString()
ViewableData::obj()
ViewableData::Odd()
ViewableData::Pos()
ViewableData::RAW_val()
ViewableData::renderWith()
ViewableData::SecurityID()
ViewableData::setCustomisedObj()
ViewableData::setField()
ViewableData::SQL_val()
ViewableData::ThemeDir()
ViewableData::Top()
ViewableData::TotalItems()
ViewableData::val()
ViewableData::XML_val()
ViewableData::__get()
ViewableData::__isset()
ViewableData::__set()
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()
Documentation generated on Sun, 19 Oct 2008 06:40:34 +1300 by phpDocumentor 1.3.2