Sha256: 2b53d3eadf4782ff1a380255125b14ae04df1d28bcec43b51e7d94cf599c5bbe

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

require 'pony'

module Messenger

  class Email

    def self.send(url, message, options={})
      Pony.mail(
        :to => url.sub(/mailto:/, ''),
        :from => options[:from],
        :subject => options[:subject],
        :body => message
      )
      [true, nil]
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
messenger-0.0.1 lib/messenger/email.rb