SendMail
Send Mail. Duh.
What it does
When this branch is hit, it will compose an e-mail, send it, and hold up until sending has been handed over successfully to the mail server.
How it works
{
instances = {
composemail = Template(
f"ConfirmationMail.txt"
) {
orderlist_branch = Module(
f"bestelling.conf@viewselected"
) {
orderitem_branch = Template(
f"-templates/bestellingbevestiging.txt");
};
};
sendconfirmation = SendMail(
from = "automaat@example.com",
subject = "example",
bodyname = "example-email",
replyto = "example@example.com",
mailservers = ["localhost"]
) {
body_branch = instances.composemail;
sending_branch = Template(f"MailIsComing.html");
sent_branch = SQL(f"SetMailSent.sql",
params = ["example-email.to"])
};
};
}