AmpMessage

Inheritance: java.lang.Object, com.aspose.email.IPreferredTextEncodingProviderInternal, com.aspose.email.MailMessage

public class AmpMessage extends MailMessage

Message which allows senders to include AMP components inside emails.

Constructors

Constructor Description
AmpMessage() Initializes a new instance of the MailMessage class

Methods

Method Description
getAmpHtmlBody() Gets the AmpHtml representation of message’s body.
setAmpHtmlBody(String value) Gets the AmpHtml representation of message’s body.
addAmpComponent(AmpComponent component) Add Amp component to this message.
save(OutputStream stream, SaveOptions options) Save message as a stream

AmpMessage()

public AmpMessage()

Initializes a new instance of the MailMessage class

getAmpHtmlBody()

public String getAmpHtmlBody()

Gets the AmpHtml representation of message’s body.

Returns: java.lang.String

setAmpHtmlBody(String value)

public void setAmpHtmlBody(String value)

Gets the AmpHtml representation of message’s body.

Parameters:

Parameter Type Description
value java.lang.String

addAmpComponent(AmpComponent component)

public final void addAmpComponent(AmpComponent component)

Add Amp component to this message.

Parameters:

Parameter Type Description
component AmpComponent

save(OutputStream stream, SaveOptions options)

public void save(OutputStream stream, SaveOptions options)

Save message as a stream

Parameters:

Parameter Type Description
stream java.io.OutputStream Stream into which message is saved
options SaveOptions Additional options for savingSaveOptions.