3 // @codingStandardsIgnoreFile
6 * Minimal set of classes necessary for UserMailer to be happy. Types
7 * taken from documentation at pear.php.net.
14 public static function isError( $data ) {
22 public function getMessage() {
28 * @param string $driver
29 * @param array $params
32 static public function factory( $driver, array $params = [] ) {
36 * @param mixed $recipients
37 * @param array $headers
39 * @return bool|PEAR_Error
41 public function send( $recipients, array $headers, $body ) {
45 class Mail_smtp
extends Mail
{
50 * @param mixed $params
52 public function __construct( $params = [] ) {
59 * @return bool|PEAR_Error
61 public function setTXTBody( $data, $isfile = false, $append = false ) {
67 * @return bool|PEAR_Error
69 public function setHTMLBody( $data, $isfile = false ) {
73 * @param array|null $parms
74 * @param mixed $filename
75 * @param bool $skip_head
76 * @return string|bool|PEAR_Error
78 public function get( $params = null, $filename = null, $skip_head = false ) {
82 * @param array|null $xtra_headers
83 * @param bool $overwrite
84 * @param bool $skip_content
87 public function headers( array $xtra_headers = null, $overwrite = false, $skip_content = false ) {