updates and cleanup.

This commit is contained in:
2026-09-24 18:49:34 +01:00
parent 1e27d7629f
commit 8823fa808a
9 changed files with 115 additions and 71 deletions
+1 -4
View File
@@ -1,11 +1,7 @@
# Mailer module
# Not to actually be used. proof of concept.
module Mail
def send(to, subject, body)
raise "Can't send email."
from_email = "infinsweeper@domain.com"
from_name = "InfinSweeper"
to = Array(to).map { |addr| { email_address: { address: addr, name: "" } } }
@@ -32,5 +28,6 @@ module Mail
return if response.is_a?(Net::HTTPSuccess)
Logman.imp "[ZeptoMail ERROR] #{response.body}"
raise "Email failed."
end
end