diff --git a/CHANGELOG.md b/CHANGELOG.md index fb9f5d0..bfa46f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index 2fdd192..6ceedeb 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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("{$test} Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.") - -variables = { - email: 'ron@parksandrec.com', - substitutions: [ - { - var: 'test', - value: 'Test Value' - } - ] -} - -ms_email.add_variables(variables) - -ms_email.send -``` - ## Bulk Email ### Send bulk email diff --git a/lib/mailersend/version.rb b/lib/mailersend/version.rb index 2557221..3c56bd7 100644 --- a/lib/mailersend/version.rb +++ b/lib/mailersend/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Mailersend - VERSION = '2.0.0' + VERSION = '2.0.1' end