@StableMinor(version="12.3", sinceVersion="4.0") public interface IMailBody
Modifier and Type | Method and Description |
---|---|
Collection<IMailAttachment> |
getAttachments()
Returns a collection of attachments for this mail.
|
String |
getHtmlMsg()
The HTML message in the body, or null if
there is no HTML message.
|
Locale |
getLocale()
Returns the locale of the message in this mail body.
|
String |
getTextMsg()
Returns the text message in the body, or null
if there is no text message.
|
void |
setHtmlMsg(String htmlMsg)
Sets the HTML message in the body.
|
void |
setLocale(Locale locale)
Sets the locale of the message in this mail body.
|
void |
setTextMsg(String textMsg)
Sets the text message for this mail.
|
Collection<IMailAttachment> getAttachments()
ISendMailManager.createMailAttachment()
String getHtmlMsg()
The value returned has all relative paths converted into absolute paths
using the PortalContext.getFrameworkUrl()
to compose all paths.
Absolute paths are not changed. The persisted original value is not changed.
getTextMsg()
void setHtmlMsg(String htmlMsg)
getHtmlMsg()
.htmlMsg
- the HTML message value to set.setTextMsg(String)
,
getHtmlMsg()
String getTextMsg()
getHtmlMsg()
void setTextMsg(String textMsg)
textMsg
- the text message value.getTextMsg()
,
setHtmlMsg(String)
Locale getLocale()
void setLocale(Locale locale)
By default the mail body has the portal's default locale
.
locale
- the locale to set. Cannot be null
.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.