Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92043798
PhabricatorMailImplementationAdapter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 16, 21:26
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Nov 18, 21:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22367747
Attached To
rPH Phabricator
PhabricatorMailImplementationAdapter.php
View Options
<?php
abstract
class
PhabricatorMailImplementationAdapter
extends
Phobject
{
abstract
public
function
setFrom
(
$email
,
$name
=
''
);
abstract
public
function
addReplyTo
(
$email
,
$name
=
''
);
abstract
public
function
addTos
(
array
$emails
);
abstract
public
function
addCCs
(
array
$emails
);
abstract
public
function
addAttachment
(
$data
,
$filename
,
$mimetype
);
abstract
public
function
addHeader
(
$header_name
,
$header_value
);
abstract
public
function
setBody
(
$plaintext_body
);
abstract
public
function
setHTMLBody
(
$html_body
);
abstract
public
function
setSubject
(
$subject
);
/**
* Some mailers, notably Amazon SES, do not support us setting a specific
* Message-ID header.
*/
abstract
public
function
supportsMessageIDHeader
();
/**
* 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 @{class:PhabricatorMetaMTAPermanentFailureException}.
*
* For temporary failures, throw some other exception or return `false`.
*
* @return bool True on success.
*/
abstract
public
function
send
();
}
Event Timeline
Log In to Comment