Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548044
PhabricatorMailEmailMessage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:42 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
97656
Default Alt Text
PhabricatorMailEmailMessage.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment