Send weekly posts to Day One
This commit is contained in:
18
lib/adamantium/syndication/dayone.rb
Normal file
18
lib/adamantium/syndication/dayone.rb
Normal 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
|
Reference in New Issue
Block a user