Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorMailImplementationPHPMailerLiteAdapter

class PhabricatorMailImplementationPHPMailerLiteAdapter
Phabricator Technical Documentation (MetaMTA)

TODO: Should be final, but inherited by SES.

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)

Note: phpmailer-lite does NOT support sending messages with mixed version (plaintext and html). So for now lets just use HTML if it's available.

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.

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

PhabricatorMailImplementationPHPMailerLiteAdapter
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()

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 hasValidRecipients()

This method is not documented.
Return
wild