Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97557029
PhabricatorMailEmailMessage.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
Sun, Jan 5, 06:21
Size
2 KB
Mime Type
text/x-php
Expires
Tue, Jan 7, 06:21 (2 d)
Engine
blob
Format
Raw Data
Handle
23340110
Attached To
rPH Phabricator
PhabricatorMailEmailMessage.php
View Options
<?php
final
class
PhabricatorMailEmailMessage
extends
PhabricatorMailExternalMessage
{
const
MESSAGETYPE
=
'email'
;
private
$fromAddress
;
private
$replyToAddress
;
private
$toAddresses
=
array
();
private
$ccAddresses
=
array
();
private
$headers
=
array
();
private
$attachments
=
array
();
private
$subject
;
private
$textBody
;
private
$htmlBody
;
public
function
newMailMessageEngine
()
{
return
new
PhabricatorMailEmailEngine
();
}
public
function
setFromAddress
(
PhutilEmailAddress
$from_address
)
{
$this
->
fromAddress
=
$from_address
;
return
$this
;
}
public
function
getFromAddress
()
{
return
$this
->
fromAddress
;
}
public
function
setReplyToAddress
(
PhutilEmailAddress
$address
)
{
$this
->
replyToAddress
=
$address
;
return
$this
;
}
public
function
getReplyToAddress
()
{
return
$this
->
replyToAddress
;
}
public
function
setToAddresses
(
array
$addresses
)
{
assert_instances_of
(
$addresses
,
'PhutilEmailAddress'
);
$this
->
toAddresses
=
$addresses
;
return
$this
;
}
public
function
getToAddresses
()
{
return
$this
->
toAddresses
;
}
public
function
setCCAddresses
(
array
$addresses
)
{
assert_instances_of
(
$addresses
,
'PhutilEmailAddress'
);
$this
->
ccAddresses
=
$addresses
;
return
$this
;
}
public
function
getCCAddresses
()
{
return
$this
->
ccAddresses
;
}
public
function
setHeaders
(
array
$headers
)
{
assert_instances_of
(
$headers
,
'PhabricatorMailHeader'
);
$this
->
headers
=
$headers
;
return
$this
;
}
public
function
getHeaders
()
{
return
$this
->
headers
;
}
public
function
setAttachments
(
array
$attachments
)
{
assert_instances_of
(
$attachments
,
'PhabricatorMailAttachment'
);
$this
->
attachments
=
$attachments
;
return
$this
;
}
public
function
getAttachments
()
{
return
$this
->
attachments
;
}
public
function
setSubject
(
$subject
)
{
$this
->
subject
=
$subject
;
return
$this
;
}
public
function
getSubject
()
{
return
$this
->
subject
;
}
public
function
setTextBody
(
$text_body
)
{
$this
->
textBody
=
$text_body
;
return
$this
;
}
public
function
getTextBody
()
{
return
$this
->
textBody
;
}
public
function
setHTMLBody
(
$html_body
)
{
$this
->
htmlBody
=
$html_body
;
return
$this
;
}
public
function
getHTMLBody
()
{
return
$this
->
htmlBody
;
}
}
Event Timeline
Log In to Comment