libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
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.Pinpoint.Types.SimpleEmail

Description

 
Synopsis

Documentation

data SimpleEmail Source #

Specifies the contents of an email message, composed of a subject, a text part, and an HTML part.

See: newSimpleEmail smart constructor.

Constructors

SimpleEmail' 

Fields

  • subject :: Maybe SimpleEmailPart

    The subject line, or title, of the email.

  • textPart :: Maybe SimpleEmailPart

    The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.

  • htmlPart :: Maybe SimpleEmailPart

    The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.

Instances

Instances details
Eq SimpleEmail Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SimpleEmail

Read SimpleEmail Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SimpleEmail

Show SimpleEmail Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SimpleEmail

Generic SimpleEmail Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SimpleEmail

Associated Types

type Rep SimpleEmail :: Type -> Type #

NFData SimpleEmail Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SimpleEmail

Methods

rnf :: SimpleEmail -> () #

Hashable SimpleEmail Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SimpleEmail

ToJSON SimpleEmail Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SimpleEmail

type Rep SimpleEmail Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.SimpleEmail

type Rep SimpleEmail = D1 ('MetaData "SimpleEmail" "Amazonka.Pinpoint.Types.SimpleEmail" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "SimpleEmail'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SimpleEmailPart)) :*: (S1 ('MetaSel ('Just "textPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SimpleEmailPart)) :*: S1 ('MetaSel ('Just "htmlPart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SimpleEmailPart)))))

newSimpleEmail :: SimpleEmail Source #

Create a value of SimpleEmail 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:subject:SimpleEmail', simpleEmail_subject - The subject line, or title, of the email.

$sel:textPart:SimpleEmail', simpleEmail_textPart - The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.

$sel:htmlPart:SimpleEmail', simpleEmail_htmlPart - The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.

simpleEmail_subject :: Lens' SimpleEmail (Maybe SimpleEmailPart) Source #

The subject line, or title, of the email.

simpleEmail_textPart :: Lens' SimpleEmail (Maybe SimpleEmailPart) Source #

The body of the email message, in plain text format. We recommend using plain text format for email clients that don't render HTML content and clients that are connected to high-latency networks, such as mobile devices.

simpleEmail_htmlPart :: Lens' SimpleEmail (Maybe SimpleEmailPart) Source #

The body of the email message, in HTML format. We recommend using HTML format for email clients that render HTML content. You can include links, formatted text, and more in an HTML message.