Liking cljdoc? Tell your friends :D
Clojure only.

net.curiousprogrammer.smtp

Primitive smtp client. For now, just enough functionality to be able to verify email recipients.

TODO: this is work in progress and doesn't work apart from JDK 8. Alternative solution based on commons-net package might be implemented later.

Primitive smtp client.
For now, just enough functionality to be able to verify email recipients.

TODO: this is work in progress and doesn't work apart from JDK 8.
Alternative solution based on commons-net package might be implemented later.
raw docstring

check-recipient!clj

(check-recipient! mail-host mail-from mail-to)

Checks whether mail-to is a valid email address, presumably an existing recipient, at given mail-host email server (presumably found via MX record for mail-to email domain).

Uses mail-from as 'MAIL FROM', otherwise it couldn't issue the 'RCPT TO' command.

Returns a map with :valid? true or false depending on the result of the check. If :valid? is false, then also returns :error key with detailed error message.

See https://mailtrap.io/blog/550-5-1-1-rejected-fix/ for more details about 550 smpt errors.

Checks whether `mail-to` is a valid email address, presumably an existing recipient,
at given `mail-host` email server (presumably found via MX record for `mail-to` email domain).

Uses `mail-from` as 'MAIL FROM', otherwise it couldn't issue the 'RCPT TO' command.

Returns a map with `:valid?` true or false depending on the result of the check.
If `:valid?` is `false`, then also returns `:error` key with detailed error message.

See https://mailtrap.io/blog/550-5-1-1-rejected-fix/ for more details about 550 smpt errors.
raw docstring

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

× close