ubicloud/views/email
Burak Yucesoy c905c0a18d Move send_email to util
Previously send_email was part of CloverWeb. This makes it difficult to send an
email in contexts outside of the web application. Sending mail requires setting
up a whole web app, which is not a lightweight operation. The reason of putting
send_email in CloverWeb was to have access to render plugin, because we need to
render html pages as a part of email content. render plugin is part of roda, so
it is not available outside of roda app.

In this commit, I implemented a simple EmailRenderer. It is a wrapper around
Tilt::ErubiTemplate, which is the same as what is used in roda's render plugin.
With the new renderer, we can render templates without having to set up a roda
app and send emails from any context.

This also unblocks sending monthly emails for invoices.
2024-04-22 16:00:57 +02:00
..
button.erb Change email style to match with our website 2023-09-28 10:22:26 +03:00
footer.erb Move send_email to util 2024-04-22 16:00:57 +02:00
header.erb Move base_url to config 2024-04-22 16:00:57 +02:00
layout.erb Add html email template and reword emails 2023-07-14 17:23:59 +03:00
style.erb Fix the email button alignment 2024-02-02 12:52:49 +03:00