amazonka-ses-2.0: Amazon Simple Email Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • 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.

  • 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).

Instances

Instances details
ToQuery Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

toQuery :: Body -> QueryString #

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 #

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 #

NFData Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

rnf :: Body -> () #

Eq Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

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

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

Hashable Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

Methods

hashWithSalt :: Int -> Body -> Int #

hash :: Body -> Int #

type Rep Body Source # 
Instance details

Defined in Amazonka.SES.Types.Body

type Rep Body = D1 ('MetaData "Body" "Amazonka.SES.Types.Body" "amazonka-ses-2.0-Gc6VkOIX7Sd2eunWehphuf" 'False) (C1 ('MetaCons "Body'" 'PrefixI 'True) (S1 ('MetaSel ('Just "html") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Content)) :*: S1 ('MetaSel ('Just "text") '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: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.

$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).

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.

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).