Build a REST API to send emails from a contact form

I am a true friend of Hugo. I have now realized 3 projects with Hugo. I am
really enthusiastic. Unfortunately, it is not (yet) possible to send static
content such as the content contact form.

I’m about to write a REST API for exactly this case in Golang. The API should
be outside the Hugo applications. The contact form within one or more Hugo
applications should be able to access this API. Which requirements are
absolutely necessary? I have not programmed such a project yet. Also, I am not
so experienced in the programming language Golang. I would like to ask you to
write your thoughts on this project.

I have set up a public repo https://gitlab.com/joergklein/smtpmailer
You can open a issue.

Thank your for the help

1 Like