Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorMailImplementationTestAdapter

final class PhabricatorMailImplementationTestAdapter
Phabricator 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 setFrom($email, $name)

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

public function addReplyTo($email, $name)

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

public function addTos($emails)

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

public function addCCs($emails)

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

public function addAttachment($data, $filename, $mimetype)

This method is not documented.
Parameters
$data
$filename
$mimetype
Return
wild

public function addHeader($header_name, $header_value)

This method is not documented.
Parameters
$header_name
$header_value
Return
wild

public function setBody($body)

This method is not documented.
Parameters
$plaintext_body
Return
wild

public function setHTMLBody($html_body)

This method is not documented.
Parameters
$html_body
Return
wild

public function setSubject($subject)

This method is not documented.
Parameters
$subject
Return
wild

public function supportsMessageIDHeader()

PhabricatorMailImplementationAdapter

Some mailers, notably Amazon SES, do not support us setting a specific Message-ID header.

PhabricatorMailImplementationTestAdapter
This method is not documented.
Return
wild

public function send()

PhabricatorMailImplementationAdapter

Send the message. Generally, this means connecting to some service and handing data to it.

If the adapter determines that the mail will never be deliverable, it should throw a PhabricatorMetaMTAPermanentFailureException.

For temporary failures, throw some other exception or return false.

PhabricatorMailImplementationTestAdapter
This method is not documented.
Return
boolTrue on success.

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 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

public function newLegacyOptions()

This method is not documented.
Return
wild

public function prepareForSend($config)

This method is not documented.
Return
wild

protected function renderAddress($email, $name)
Inherited

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

public function getGuts()

This method is not documented.
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