lib/eco/api/common/session/mailer.rb in eco-helpers-1.0.13 vs lib/eco/api/common/session/mailer.rb in eco-helpers-1.0.14
- old
+ new
@@ -10,9 +10,13 @@
def initialize (enviro:)
raise "Required Environment object (enviro:). Given: #{enviro}" if enviro && !enviro.is_a?(Eco::API::Common::Session::Environment)
@enviro = enviro
end
+ # Sends an email
+ # @param to [String] destination email address
+ # @param subject [String] subject of the email
+ # @param body [String] `html` or plain text message
def mail(to:, subject:, body:)
ses.send_email(
destination: {
to_addresses: [to].flatten,
},