Working test version of confirmation email delivery

This commit is contained in:
2025-03-16 20:22:48 +02:00
parent d21b92045e
commit a454bb2c49
12 changed files with 82 additions and 20 deletions

View File

@@ -41,7 +41,7 @@ defmodule OsuuspuutarhaWeb.OrderLive.FormComponent do
end
defp save_order(socket, :new, order_params) do
case Orders.create_order(order_params) do
case Orders.process_order(order_params) do
{:ok, _order} ->
{:noreply,
socket

View File

@@ -0,0 +1,3 @@
<div>
<h1>Osuuspuutarhan testimaili, <%= @variable %>!</h1>
</div>

View File

@@ -0,0 +1,8 @@
<html>
<head>
<title><%= @email.subject %></title>
</head>
<body>
<%= @inner_content %>
</body>
</html>