From 185363010244272231cc3187676b99edc86963b8 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Wed, 8 Mar 2023 19:07:45 +1100 Subject: [PATCH] Specify to and from --- lib/adamantium/syndication/dayone.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/adamantium/syndication/dayone.rb b/lib/adamantium/syndication/dayone.rb index 850cc12..31140e6 100644 --- a/lib/adamantium/syndication/dayone.rb +++ b/lib/adamantium/syndication/dayone.rb @@ -23,12 +23,15 @@ module Adamantium } end - Mail.deliver do - to @to - from @username + mail = Mail.new do subject name body content end + + mail[:to] = @to + mail[:from] = @from + + mail.deliver end end end