resend - A client library for sending emails via resend.com
RESEND ASDF System Details
Description: A client library for sending emails via resend.com
Licence: Unlicense
Author: Alexander Artemenko <svetlyak.40wt@gmail.com>
Homepage: https://40ants.com/resend/
Bug tracker: https://github.com/40ants/resend/issues
Source control: GIT
Depends on: dexador, log4cl, secret-values, serapeum, spinneret, yason
Installation
You can install this library from Quicklisp, but you want to receive updates quickly, then install it from Ultralisp.org:
(ql-dist:install-dist "http://dist.ultralisp.org/"
:prompt nil)
(ql:quickload :resend)
Usage
This is a simple client to Resend.com. It allows to send transactional HTML
emails.
Here is a quick example:
;; First, we need to give it an API key to authenticate itself:
(setf resend:*api-key*
"re_*************************")
;; Then we can use this macro, to send letter. The macro RESEND:SEND uses Spinneret for rendering it's body
;; to HTML and then sends it to given email.
(let ((name "Bob"))
(resend:send ("onboarding@resend.dev" "bob@example.com" "Test email message")
(:h1 "Hello my friend!")
(:p (format nil "How are you doing, ~A?" name))))
API
RESEND
Macros
Sends HTML
letter to an email.
Body of this macro should contain a markup for spinneret library. Also, it can use "htm" macro, to wrap html markup in the inner lisp constructions such as loops and conditional expressions.
Variables
This should be a string or a secret-values:secret-value.
A value to be used in User-Agent HTTP
header.