Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
SimpleEmail' | |
|
Instances
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.