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 +1 -1
- data/lib/jangomailm.rb +2 -1
- data/lib/mailgunm.rb +1 -1
- data/lib/postageappm.rb +3 -2
- data/lib/sendgridm.rb +1 -1
- metadata +1 -1
data/lib/elasticemailm.rb
CHANGED
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
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
|
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