Sha256: 0244dd0c336dc891be36df2bb866c6da29924107c113e2bc906da89c959bf1e7
Contents?: true
Size: 415 Bytes
Versions: 14
Compression:
Stored size: 415 Bytes
Contents
require 'letter_opener/delivery_method' module LetterOpenerWeb class DeliveryMethod < LetterOpener::DeliveryMethod def deliver!(mail) location = File.join(settings[:location], "#{Time.now.to_i}_#{Digest::SHA1.hexdigest(mail.encoded)[0..6]}") messages = LetterOpener::Message.rendered_messages(location, mail) # Launchy.open(URI.parse(URI.escape(messages.first.filepath))) end end end
Version data entries
14 entries across 14 versions & 1 rubygems