mailjet 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc2b380d0a9752d1ee5a34808bfb357e50905ef2
4
- data.tar.gz: 7ab37a7ffb8e5da6913ec46e8c28fe6f52083e7a
3
+ metadata.gz: 8af4226e965547a8e1393ba6c6ed007184e1f2d9
4
+ data.tar.gz: c7452d0e44d180278bbcd74dd31c504042842b9c
5
5
  SHA512:
6
- metadata.gz: 8b243e215c9ff1ad03219b9179e3ae62d29d328e7e1744c8ad03906d197beae0d2369308a630e6eaf5f805b15e61b8b69028a64939e93e79125ab502195ba833
7
- data.tar.gz: 388cf233e0d6e362f877d520107a998ff9c5f9e8cf091362da23bb46faab85ccd9ccefb2b9dc0b3d8eeb347867aa2baa27875a3cedc04b0980782a422bc6838c
6
+ metadata.gz: 7d056953506cd63412b8dbf49a04fbccc61b98e7a8e83feaff2dcbf29aebcb10e8100d9216a24034990645cdbb329f888b650b85a5810bc655a804e516bbeb33
7
+ data.tar.gz: 36668d33d0fb62004e7ad3c7e3fda6ab410713e6be56ca77e63e9cc88d46966df61ffe0d9c4029d32d6bef677d89f2d7b1fb6ec5dbcac395678bb769de152cf4
data/README.md CHANGED
@@ -57,6 +57,12 @@ Every code examples can be find on the [Mailjet Documentation][mailjet_doc]
57
57
 
58
58
  ## Install
59
59
 
60
+ ### Rubygems
61
+
62
+ ```bash
63
+ $ gem install mailjet
64
+ ```
65
+
60
66
  ### Bundler
61
67
 
62
68
  Add the following in your Gemfile:
@@ -78,12 +84,6 @@ and let the bundler magic happen
78
84
  $ bundle install
79
85
  ```
80
86
 
81
- ### Rubygems
82
-
83
- ```bash
84
- $ gem install mailjet
85
- ```
86
-
87
87
  ## Setup
88
88
 
89
89
  ### Api key
@@ -104,6 +104,25 @@ end
104
104
 
105
105
  `default_from` is optional if you send emails with `:mailjet`'s SMTP (below)
106
106
 
107
+ ### Send emails via the SendAPI
108
+
109
+ Find more about the Mailjet SendAPI in the [official guides][send-api-doc]
110
+
111
+ ``` ruby
112
+
113
+ email = { :from_email => "your email",
114
+ :from_name => "Your name",
115
+ :subject => "Hello",
116
+ :text_part => "Hi",
117
+ :recipients => [{:email => "recipient email"}] }
118
+
119
+ test = Mailjet::Send.create(email)
120
+
121
+ # retrieve the API response
122
+ p test.attributes['Sent']
123
+
124
+ ```
125
+
107
126
  ### Send emails with ActionMailer
108
127
  A quick walkthrough to using Action Mailer from the documentation [HERE](http://guides.rubyonrails.org/action_mailer_basics.html)
109
128
 
@@ -5,6 +5,6 @@ module Mailjet
5
5
  include Mailjet::Resource
6
6
  self.resource_path = 'v3/send/'
7
7
  self.public_operations = [:post]
8
- self.resourceprop = [:from_email, :from_name, :recipients, :subject, :text_part, :html_part, :attachments, :inline_attachments, :headers, 'Mj-TemplateID', 'Mj-CustomID', :message_id, :messages]
8
+ self.resourceprop = [:from_email, :from_name, :recipients, :subject, :text_part, :html_part, :attachments, :inline_attachments, :headers, 'Mj-TemplateID', 'Mj-CustomID', :message_id, :messages, :to, :cc, :bcc]
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Mailjet
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailjet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Nappy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-01-21 00:00:00.000000000 Z
14
+ date: 2016-01-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport