public class AmpMessage extends MailMessage
Message which allows senders to include AMP components inside emails.
| Constructor and Description |
|---|
AmpMessage()
Initializes a new instance of the
MailMessage class |
| Modifier and Type | Method and Description |
|---|---|
void |
addAmpComponent(AmpComponent component)
Add Amp component to this message.
|
String |
getAmpHtmlBody()
Gets the AmpHtml representation of message's body.
|
void |
save(OutputStream stream,
SaveOptions options)
Save message as a stream
|
void |
setAmpHtmlBody(String value)
The AmpHtml representation of message's body.
|
addAlternateView, addAttachment, attachDetachedSignature, attachSignature, attachSignature, attachSignature, attachSignature, checkBounced, checkSignature, checkSignature, checkSignature, checkSignatureCert, close, createReadReceipt, decrypt, decrypt, decrypt, deepClone, dispose, dispose, dKIMSign, encrypt, encrypt, equals, getAlternateViewContent, getAlternateViews, getAttachments, getBcc, getBody, getBodyEncoding, getBodyType, getCc, getCC, getDate, getDeliveryNotificationOptions, getEpilogue, getFrom, getHeaders, getHtmlBody, getHtmlBodyText, getHtmlBodyText, getHtmlWithResources, getItemId, getLinkedResources, getLocalDate, getMessageId, getOriginalIsTnef, getPreamble, getPreferredTextEncoding, getPriority, getReadReceiptTo, getReplyToList, getReversePath, getSender, getSensitivity, getSubject, getSubjectEncoding, getTimeZoneOffset, getTo, getXMailer, hashCode, importMessage, isBodyHtml, isBodyHtml, isDraft, isDraft, isEncrypted, isLocalDate, isReadOnly, isSigned, iterator, load, load, load, load, recomposeTnefContent, removeSignature, resetBoundaryTemplate, save, save, save, setBcc, setBody, setBodyEncoding, setCC, setDate, setDeliveryNotificationOptions, setEpilogue, setFrom, setFrom, setHtmlBody, setHtmlBody, setMessageId, setPreamble, setPreferredTextEncoding, setPriority, setReadReceiptTo, setReplyToList, setReversePath, setSender, setSensitivity, setSubject, setSubjectEncoding, setTimeZoneOffset, setTo, setXMailer, toString, unSubscribeFromEvents, validateMessage, validateMessagepublic AmpMessage()
Initializes a new instance of the MailMessage class
public String getAmpHtmlBody()
Gets the AmpHtml representation of message's body.
public void setAmpHtmlBody(String value)
The AmpHtml representation of message's body.
value - the AmpHtml representation of message's body.public final void addAmpComponent(AmpComponent component)
Add Amp component to this message.
component - Amp component to add AmpComponent.public void save(OutputStream stream, SaveOptions options)
Save message as a stream
save in class MailMessagestream - Stream into which message is savedoptions - Additional options for savingSaveOptions.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.