metamailer 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/elasticemailm.rb CHANGED
@@ -1,4 +1,4 @@
1
- class ElasticemailMailer < MetaMailer
1
+ class MetaMailer::Elasticemail < MetaMailer
2
2
  attr_accessor :username
3
3
  attr_accessor :api_key
4
4
 
data/lib/jangomailm.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require "net/http"
2
2
 
3
- class Jangomail < MetaMailer
3
+ class MetaMailer::Jangomail < MetaMailer
4
4
  attr_accessor :username
5
5
  attr_accessor :api_key
6
6
 
@@ -14,5 +14,6 @@ class Jangomail < MetaMailer
14
14
  from_address = from.split("<")[1].split(">")[0]
15
15
  from_name = from.split(" <")[0]
16
16
  p = {:Username => @username, :Password => @password, :FromEmail => from_address, :FromName => from_name, :ToEmailAddress => to, :Subject => subject, :MessagePlain => text, :MessageHTML => html, :Options => ""}
17
+ response = Net::HTTP.post_form(uri, p)
17
18
  end
18
19
  end
data/lib/mailgunm.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "multimap"
2
2
  require "rest-client"
3
3
 
4
- class Mailgun < MetaMailer
4
+ class MetaMailer::Mailgun < MetaMailer
5
5
  attr_accessor :username
6
6
  attr_accessor :api_key
7
7
 
data/lib/postageappm.rb CHANGED
@@ -5,7 +5,7 @@ require 'postageapp'
5
5
  # config.api_key = ""# api key goes here
6
6
  #end
7
7
 
8
- class PostageAppMailer < MetaMailer
8
+ class MetaMailer::Postageapp < MetaMailer
9
9
  def initialize(api_key)
10
10
  PostageApp.configure do |config|
11
11
  config.api_key = ""
@@ -20,7 +20,8 @@ class PostageAppMailer < MetaMailer
20
20
  },
21
21
  'recipients' => to,
22
22
  'content' => {
23
- 'text/plain' => text
23
+ 'text/plain' => text,
24
+ 'text/html' => html
24
25
  }
25
26
  })
26
27
  response = request.send
data/lib/sendgridm.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require "sendgrid_toolkit"
2
2
 
3
- class Sendgrid < MetaMailer
3
+ class MetaMailer::Sendgrid < MetaMailer
4
4
  attr_accessor :api_user
5
5
  attr_accessor :api_key
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metamailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: