Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorMailImplementationAdapter

abstract class PhabricatorMailImplementationAdapter
Phabricator Technical Documentation (MetaMTA)

This class is not documented.

Methods

final public function getAdapterType()

This method is not documented.
Return
wild

final public static function getAllAdapters()

This method is not documented.
Return
wild

abstract public function setFrom($email, $name)

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

abstract public function addReplyTo($email, $name)

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

abstract public function addTos($emails)

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

abstract public function addCCs($emails)

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

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

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

abstract public function addHeader($header_name, $header_value)

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

abstract public function setBody($plaintext_body)

This method is not documented.
Parameters
$plaintext_body
Return
wild

abstract public function setHTMLBody($html_body)

This method is not documented.
Parameters
$html_body
Return
wild

abstract public function setSubject($subject)

This method is not documented.
Parameters
$subject
Return
wild

abstract public function supportsMessageIDHeader()

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

Return
wild

abstract public function send()

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.

Return
boolTrue on success.

final public function setKey($key)

This method is not documented.
Parameters
$key
Return
wild

final public function getKey()

This method is not documented.
Return
wild

final public function setPriority($priority)

This method is not documented.
Parameters
$priority
Return
wild

final public function getPriority()

This method is not documented.
Return
wild

final public function getOption($key)

This method is not documented.
Parameters
$key
Return
wild

final public function setOptions($options)

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

abstract protected function validateOptions($options)

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

abstract public function newDefaultOptions()

This method is not documented.
Return
wild

abstract public function newLegacyOptions()

This method is not documented.
Return
wild

public function prepareForSend()

This method is not documented.
Return
wild

protected function renderAddress($email, $name)

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