updates and cleanup.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user