mailjet 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +25 -6
- data/lib/mailjet/resources/send.rb +1 -1
- data/lib/mailjet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8af4226e965547a8e1393ba6c6ed007184e1f2d9
|
4
|
+
data.tar.gz: c7452d0e44d180278bbcd74dd31c504042842b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/mailjet/version.rb
CHANGED
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.
|
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-
|
14
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|