Page MenuHomePhorge
Diviner Tech Docs PhabricatorMailTestAdapter

final class PhabricatorMailTestAdapter
Phorge Technical Documentation (MetaMTA)

Mail adapter that doesn't actually send any email, for writing unit tests against.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

final public function getAdapterType()
Inherited

This method is not documented.
Return
wild

final public static function getAllAdapters()
Inherited

This method is not documented.
Return
wild

public function getSupportedMessageTypes()

This method is not documented.
Return
wild

public function sendMessage($message)

This method is not documented.
Parameters
PhabricatorMailExternalMessage$message
Return
wild

public function supportsMessageIDHeader()

PhabricatorMailAdapter

Return true if this adapter supports setting a "Message-ID" when sending email.

This is an ugly implementation detail because mail threading is a horrible mess, implemented differently by every client in existence.

PhabricatorMailTestAdapter
This method is not documented.
Return
wild

final public function supportsMessageType($message_type)
Inherited

This method is not documented.
Parameters
$message_type
Return
wild

final public function setMedia($media)
Inherited

This method is not documented.
Parameters
array$media
Return
wild

final public function getMedia()
Inherited

This method is not documented.
Return
wild

final public function setKey($key)
Inherited

This method is not documented.
Parameters
$key
Return
wild

final public function getKey()
Inherited

This method is not documented.
Return
wild

final public function setPriority($priority)
Inherited

This method is not documented.
Parameters
$priority
Return
wild

final public function getPriority()
Inherited

This method is not documented.
Return
wild

final public function setSupportsInbound($supports_inbound)
Inherited

This method is not documented.
Parameters
$supports_inbound
Return
wild

final public function getSupportsInbound()
Inherited

This method is not documented.
Return
wild

final public function setSupportsOutbound($supports_outbound)
Inherited

This method is not documented.
Parameters
$supports_outbound
Return
wild

final public function getSupportsOutbound()
Inherited

This method is not documented.
Return
wild

final public function getOption($key)
Inherited

This method is not documented.
Parameters
$key
Return
wild

final public function setOptions($options)
Inherited

This method is not documented.
Parameters
array$options
Return
wild

protected function validateOptions($options)

This method is not documented.
Parameters
array$options
Return
wild

public function newDefaultOptions()

This method is not documented.
Return
wild

final protected function guessIfHostSupportsMessageID($config, $host)
Inherited

This method is not documented.
Parameters
$config
$host
Return
wild

public function setSupportsMessageID($support)

This method is not documented.
Parameters
$support
Return
wild

public function setFailPermanently($fail)

This method is not documented.
Parameters
$fail
Return
wild

public function setFailTemporarily($fail)

This method is not documented.
Parameters
$fail
Return
wild

public function getGuts()

This method is not documented.
Return
wild

public function getBody()

This method is not documented.
Return
wild

public function getHTMLBody()

This method is not documented.
Return
wild

private function newEmailGuts($message)

This method is not documented.
Parameters
PhabricatorMailExternalMessage$message
Return
wild

private function newSMSGuts($message)

This method is not documented.
Parameters
PhabricatorMailExternalMessage$message
Return
wild