Page MenuHomeClusterLabs Projects
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

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