Class mailto
Render an email-based report and sends it out to a configured recipient.
Multiple email reports for different incidents during the same request are automatically grouped by the fault instance UUID (this should be done automatically by most email programs). For automatic processing, additional headers are embedded:
X-Medusa-Core-Fault-Reference
Request reference identifier, usually used to communicate an incident, i.e. by giving to the user as a short reference.X-Medusa-Core-Fault-Instance
Contains the UUID of the fault instance (used to identify the request; if incidents are stored via another reporter, the request UUID should be stored along with them).X-Medusa-Core-Fault-Host
Hostname as returned by theCore\Fault\Reporter\Driver\mailto::senderHostname()
method.X-Medusa-Core-Fault-Index
Incident counter value (index per request) at the time the mail was generated. Can be used to sort incidents within a single request. Format:*value* "/" *configured limit*
.X-Medusa-Core-Fault-Level
Incident level counter value. If greater than 1, the reported incident occurred while another incident is already being handled. Format:*value* "/" *configured limit*
.X-Medusa-Core-Incident-Type
Incident type being reported.X-Medusa-Core-Incident-Code
Code of incident being reported.X-Medusa-Core-Incident-Recoverable
YES
, if reported incident is recoverable, otherwiseNO
.X-Medusa-Core-Incident-Silent
YES
, if reported incident is silent, otherwiseNO
.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Fault\Reporter
- Core\Fault\Reporter\Driver\mailto
Package: Core\Fault\Reporter
Since: 3.2
Requires: PHP 5.3
Version: 1.0
Located at Fault/Reporter/Driver/mailto.inc.php
Methods summary
public
|
|
protected
string[]
|
|
public
|
|
public
string
|
|
public
string
|
|
public
string
|
Methods inherited from Core\Fault\Reporter
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
string
|
$_v_recipient
Recipient from configuration URI. |