Default content type text/html
Default content type text/html
(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.
(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.
(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.
(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.
(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.
(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.
(valid? address)
Valid email address?. The regex was copied from regular-expressions.info
Valid email address?. The regex was copied from regular-expressions.info
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close