Liking cljdoc? Tell your friends :D

e85th.commons.email


default-content-typeclj

Default content type text/html

Default content type text/html
sourceraw docstring

domainclj

(domain s)

Parse the domain from a valid email address ie foo@example.com returns example.com An invalid email address will throw an AssertionError.

Parse the domain from a valid email address ie foo@example.com returns example.com
An invalid email address will throw an AssertionError.
sourceraw docstring

env->subject-prefixerclj

(env->subject-prefixer env-name)

Generates a prefixer that prefixes [TEST] if non prod env.

Generates a prefixer that prefixes [TEST] if non prod env.
sourceraw docstring

html-content-typeclj

source

IEmailSendercljprotocol

sendclj

(send this msg)
source

invalid?clj

source

make-subject-prefixerclj

(make-subject-prefixer prefix)

Creates a function which applies the prefix to the subject if prefix is a non-empty string. Otherwise returns the identity function. This is useful for prefixing for eg [TEST] in dev/staging emails.

Creates a function which applies the prefix to the subject if prefix is a non-empty string.
Otherwise returns the identity function. This is useful for prefixing for eg [TEST] in
dev/staging emails.
sourceraw docstring

new-nil-email-senderclj

(new-nil-email-sender)
source

new-smtp-email-senderclj

(new-smtp-email-sender smtp-config)
(new-smtp-email-sender smtp-config subject-modifier-fn)

Creates a new smtp email sender.

Creates a new smtp email sender.
sourceraw docstring

normalizeclj

(normalize s)

Does not lower-case because the local part can be case sensitive.

Does not lower-case because the local part can be case sensitive.
sourceraw docstring

usernameclj

(username s)

Parse the username from a valid email address ie foo@example.com returns foo. An invalid email address will throw an AssertionError.

Parse the username from a valid email address ie foo@example.com returns foo.
An invalid email address will throw an AssertionError.
sourceraw docstring

valid?clj

(valid? address)

Valid email address?. The regex was copied from regular-expressions.info

Valid email address?. The regex was copied from regular-expressions.info
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close