public function setFrom($email, $name)
public function setFrom($email, $name)
Parameters
| $name |
Return
| wild |
public function addReplyTo($email, $name)
public function addReplyTo($email, $name)
Parameters
| $name |
Return
| wild |
public function addTos($emails)
public function addTos($emails)
Parameters
| array | $emails |
Return
| wild |
public function addCCs($emails)
public function addCCs($emails)
Parameters
| array | $emails |
Return
| wild |
public function addAttachment($data, $filename, $mimetype)
public function addAttachment($data, $filename, $mimetype)
Parameters
| $data | ||
| $filename | ||
| $mimetype |
Return
| wild |
public function addHeader($header_name, $header_value)
public function addHeader($header_name, $header_value)
Parameters
| $header_name | ||
| $header_value |
Return
| wild |
public function setBody($body)
public function setBody($body)
Parameters
| $plaintext_body |
Return
| wild |
public function setHTMLBody($html_body)
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)
public function setSubject($subject)
Parameters
| $subject |
Return
| wild |
public function supportsMessageIDHeader()
public function supportsMessageIDHeader()
PhabricatorMailImplementationAdapter
Some mailers, notably Amazon SES, do not support us setting a specific Message-ID header.
PhabricatorMailImplementationPHPMailerLiteAdapter
Return
| wild |
public function send()
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
Return
| bool | True on success. |
public function __construct()
public function __construct()
Return
| this | //Implicit.// |
public function hasValidRecipients()
public function hasValidRecipients()
Return
| wild |