Send weekly posts to Day One

This commit is contained in:
2023-03-07 22:02:05 +11:00
parent 4b2a8ee672
commit de34b2733f
6 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
require "mail"
module Adamantium
module Syndication
class Dayone
include Deps["settings"]
def call(name:, content:)
Mail.deliver do
to settings.dayone_email
from settings.from_email
subject name
body content
end
end
end
end
end