| Copyright | (c) digitally induced GmbH 2020 |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
IHP.Mail.Types
Description
Synopsis
- data MailServer
- = SES {
- accessKey :: ByteString
- secretKey :: ByteString
- region :: Text
- | Sendmail
- | SendGrid { }
- | SMTP {
- host :: String
- port :: PortNumber
- credentials :: Maybe (String, String)
- encryption :: SMTPEncryption
- = SES {
- data MailAttachment = MailAttachment {
- name :: Text
- content :: LByteString
- contentType :: Text
- data SMTPEncryption
- = Unencrypted
- | TLS
- | STARTTLS
Documentation
data MailServer Source #
Constructors
| SES | Uses AWS SES for sending emails |
Fields
| |
| Sendmail | Uses the local Sendmail binary for sending emails |
| SendGrid | Uses SendGrid for sending emails |
| SMTP | Uses a generic SMTP server for sending emails |
Fields
| |
data MailAttachment Source #
Constructors
| MailAttachment | |
Fields
| |
Instances
| Show MailAttachment Source # | |
Defined in IHP.Mail.Types Methods showsPrec :: Int -> MailAttachment -> ShowS # show :: MailAttachment -> String # showList :: [MailAttachment] -> ShowS # | |
| Eq MailAttachment Source # | |
Defined in IHP.Mail.Types Methods (==) :: MailAttachment -> MailAttachment -> Bool # (/=) :: MailAttachment -> MailAttachment -> Bool # | |
data SMTPEncryption Source #
Configuration for a mailer used by IHP
Constructors
| Unencrypted | |
| TLS | |
| STARTTLS |
Instances
| EnvVarReader SMTPEncryption Source # | Allow reading the env var of an SMTP encryption method. |
Defined in IHP.EnvVar Methods envStringToValue :: ByteString -> Either Text SMTPEncryption Source # | |