mailersend-ruby 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +0 -33
- data/lib/mailersend/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d2a5a259ed13eecd19d5155d1f855449a03748539e621984630bf3ebc7a6777
|
4
|
+
data.tar.gz: ad67464ced57219f06f890506ed84bd20971bf718e50ec747c8a071982cc70b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5f71355c8b3e35019be782a786939f5ba17a1b5af48df4e45062e767d5c0e378d2577ee80208969feb252d7024e3568a2f7dde03dc14b748441a9f7081f7335
|
7
|
+
data.tar.gz: 03dab0c147d37a97bb5b61c5f02002e0e539a540f24655e1a1e4280646e42f252ccd071b0dcc54c2cab44205539b6e8268010ae4dea36b527e3c55728174b41d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,6 @@ MailerSend Ruby SDK
|
|
12
12
|
- [Add CC, BCC recipients](#add-cc-bcc-recipients)
|
13
13
|
- [Send a template-based email](#send-a-template-based-email)
|
14
14
|
- [Advanced personalization](#advanced-personalization)
|
15
|
-
- [Simple personalization](#simple-personalization)
|
16
15
|
- [Bulk Email](#bulk-email)
|
17
16
|
- [Send bulk email](#send-bulk-email)
|
18
17
|
- [Get bulk email status](#get-bulk-email-status)
|
@@ -224,38 +223,6 @@ ms_email.add_personalization(personalization)
|
|
224
223
|
ms_email.send
|
225
224
|
```
|
226
225
|
|
227
|
-
### Simple personalization
|
228
|
-
|
229
|
-
```ruby
|
230
|
-
require "mailersend-ruby"
|
231
|
-
|
232
|
-
ms_client = Mailersend::Client.new('your_mailersend_token')
|
233
|
-
|
234
|
-
# Intialize the email class
|
235
|
-
ms_email = Mailersend::Email.new(ms_client)
|
236
|
-
|
237
|
-
# Add parameters
|
238
|
-
ms_email.add_recipients("email" => "ron@parksandrec.com", "name" => "Ron")
|
239
|
-
ms_email.add_from("email" => "april@parksandrec.com", "name" => "April")
|
240
|
-
ms_email.add_subject("Time {$test}")
|
241
|
-
ms_email.add_text("{$test} Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.")
|
242
|
-
ms_email.add_html("<b>{$test} Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.</b>")
|
243
|
-
|
244
|
-
variables = {
|
245
|
-
email: 'ron@parksandrec.com',
|
246
|
-
substitutions: [
|
247
|
-
{
|
248
|
-
var: 'test',
|
249
|
-
value: 'Test Value'
|
250
|
-
}
|
251
|
-
]
|
252
|
-
}
|
253
|
-
|
254
|
-
ms_email.add_variables(variables)
|
255
|
-
|
256
|
-
ms_email.send
|
257
|
-
```
|
258
|
-
|
259
226
|
## Bulk Email
|
260
227
|
|
261
228
|
### Send bulk email
|
data/lib/mailersend/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailersend-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Milojević
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.5.3
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: MailerSend's official Ruby SDK
|