Skip to content

Commit

Permalink
chore: remove simple personalization refs
Browse files Browse the repository at this point in the history
  • Loading branch information
dinomh committed Jan 8, 2024
1 parent 39ef60e commit 6491e9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [Released]

## [2.0.1] - 2023-01-08

- Simple personalization removed

## [2.0.0] - 2023-12-18

- *BREAKING CHANGE* - Please check the README file, MailerSend API token is now defined inside your application.
Expand Down
33 changes: 0 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ MailerSend Ruby SDK
- [Add CC, BCC recipients](#add-cc-bcc-recipients)
- [Send a template-based email](#send-a-template-based-email)
- [Advanced personalization](#advanced-personalization)
- [Simple personalization](#simple-personalization)
- [Bulk Email](#bulk-email)
- [Send bulk email](#send-bulk-email)
- [Get bulk email status](#get-bulk-email-status)
Expand Down Expand Up @@ -224,38 +223,6 @@ ms_email.add_personalization(personalization)
ms_email.send
```

### Simple personalization

```ruby
require "mailersend-ruby"

ms_client = Mailersend::Client.new('your_mailersend_token')

# Intialize the email class
ms_email = Mailersend::Email.new(ms_client)

# Add parameters
ms_email.add_recipients("email" => "ron@parksandrec.com", "name" => "Ron")
ms_email.add_from("email" => "april@parksandrec.com", "name" => "April")
ms_email.add_subject("Time {$test}")
ms_email.add_text("{$test} Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.")
ms_email.add_html("<b>{$test} Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.</b>")

variables = {
email: 'ron@parksandrec.com',
substitutions: [
{
var: 'test',
value: 'Test Value'
}
]
}

ms_email.add_variables(variables)

ms_email.send
```

## Bulk Email

### Send bulk email
Expand Down
2 changes: 1 addition & 1 deletion lib/mailersend/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Mailersend
VERSION = '2.0.0'
VERSION = '2.0.1'
end

0 comments on commit 6491e9f

Please sign in to comment.