libZSservicesZSamazonka-sesZSamazonka-ses
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SES.Types.Body

Description

 
Synopsis

Documentation

data Body Source #

Represents the body of the message. You can specify text, HTML, or both. If you use both, then the message should display correctly in the widest variety of email clients.

See: newBody smart constructor.

Constructors

Body' 

Fields

  • text :: Maybe Content

    The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).

  • html :: Maybe Content

    The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.

Instances

Instances details
Eq Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

(==) :: Body -> Body -> Bool #

(/=) :: Body -> Body -> Bool #

Read Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Show Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

showsPrec :: Int -> Body -> ShowS #

show :: Body -> String #

showList :: [Body] -> ShowS #

Generic Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Associated Types

type Rep Body :: Type -> Type #

Methods

from :: Body -> Rep Body x #

to :: Rep Body x -> Body #

NFData Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

rnf :: Body -> () #

Hashable Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

hashWithSalt :: Int -> Body -> Int #

hash :: Body -> Int #

ToQuery Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

toQuery :: Body -> QueryString #

type Rep Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

type Rep Body = D1 ('MetaData "Body" "Amazonka.SES.Types.Body" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "Body'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Content)) :*: S1 ('MetaSel ('Just "html") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Content))))

newBody :: Body Source #

Create a value of Body with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:text:Body', body_text - The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).

$sel:html:Body', body_html - The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.

body_text :: Lens' Body (Maybe Content) Source #

The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices).

body_html :: Lens' Body (Maybe Content) Source #

The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.