Working test version of confirmation email delivery
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
<h1>Osuuspuutarhan testimaili, <%= @variable %>!</h1>
|
||||
</div>
|
||||
8
lib/osuuspuutarha_web/templates/layout/email.html.heex
Normal file
8
lib/osuuspuutarha_web/templates/layout/email.html.heex
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title><%= @email.subject %></title>
|
||||
</head>
|
||||
<body>
|
||||
<%= @inner_content %>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user