mandrill-api 1.0.32 → 1.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mandrill/api.rb +9 -6
  2. metadata +4 -4
data/lib/mandrill/api.rb CHANGED
@@ -719,14 +719,15 @@ module Mandrill
719
719
  # - [String] name the Content ID of the image - use <img src="cid:THIS_VALUE"> to reference the image in your HTML content
720
720
  # - [String] content the content of the image as a base64-encoded string
721
721
  # @param [Boolean] async enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.
722
+ # @param [String] ip_pool the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead.
722
723
  # @return [Array] of structs for each recipient containing the key "email" with the email address and "status" as either "sent", "queued", or "rejected"
723
724
  # - [Hash] return[] the sending results for a single recipient
724
725
  # - [String] email the email address of the recipient
725
726
  # - [String] status the sending status of the recipient - either "sent", "queued", "rejected", or "invalid"
726
727
  # - [String] reject_reason the reason for the rejection if the recipient status is "rejected"
727
728
  # - [String] _id the message's unique id
728
- def send(message, async=false)
729
- _params = {:message => message, :async => async}
729
+ def send(message, async=false, ip_pool=nil)
730
+ _params = {:message => message, :async => async, :ip_pool => ip_pool}
730
731
  return @master.call 'messages/send', _params
731
732
  end
732
733
 
@@ -790,14 +791,15 @@ module Mandrill
790
791
  # - [String] name the Content ID of the image - use <img src="cid:THIS_VALUE"> to reference the image in your HTML content
791
792
  # - [String] content the content of the image as a base64-encoded string
792
793
  # @param [Boolean] async enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.
794
+ # @param [String] ip_pool the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead.
793
795
  # @return [Array] of structs for each recipient containing the key "email" with the email address and "status" as either "sent", "queued", or "rejected"
794
796
  # - [Hash] return[] the sending results for a single recipient
795
797
  # - [String] email the email address of the recipient
796
798
  # - [String] status the sending status of the recipient - either "sent", "queued", "rejected", or "invalid"
797
799
  # - [String] reject_reason the reason for the rejection if the recipient status is "rejected"
798
800
  # - [String] _id the message's unique id
799
- def send_template(template_name, template_content, message, async=false)
800
- _params = {:template_name => template_name, :template_content => template_content, :message => message, :async => async}
801
+ def send_template(template_name, template_content, message, async=false, ip_pool=nil)
802
+ _params = {:template_name => template_name, :template_content => template_content, :message => message, :async => async, :ip_pool => ip_pool}
801
803
  return @master.call 'messages/send-template', _params
802
804
  end
803
805
 
@@ -862,14 +864,15 @@ module Mandrill
862
864
  # @param [Array, nil] to optionally define the recipients to receive the message - otherwise we'll use the To, Cc, and Bcc headers provided in the document
863
865
  # - [String] to[] the email address of the recipint
864
866
  # @param [Boolean] async enable a background sending mode that is optimized for bulk sending. In async mode, messages/sendRaw will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.
867
+ # @param [String] ip_pool the name of the dedicated ip pool that should be used to send the message. If you do not have any dedicated IPs, this parameter has no effect. If you specify a pool that does not exist, your default pool will be used instead.
865
868
  # @return [Array] of structs for each recipient containing the key "email" with the email address and "status" as either "sent", "queued", or "rejected"
866
869
  # - [Hash] return[] the sending results for a single recipient
867
870
  # - [String] email the email address of the recipient
868
871
  # - [String] status the sending status of the recipient - either "sent", "queued", "rejected", or "invalid"
869
872
  # - [String] reject_reason the reason for the rejection if the recipient status is "rejected"
870
873
  # - [String] _id the message's unique id
871
- def send_raw(raw_message, from_email=nil, from_name=nil, to=nil, async=false)
872
- _params = {:raw_message => raw_message, :from_email => from_email, :from_name => from_name, :to => to, :async => async}
874
+ def send_raw(raw_message, from_email=nil, from_name=nil, to=nil, async=false, ip_pool=nil)
875
+ _params = {:raw_message => raw_message, :from_email => from_email, :from_name => from_name, :to => to, :async => async, :ip_pool => ip_pool}
873
876
  return @master.call 'messages/send-raw', _params
874
877
  end
875
878
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 87
4
+ hash: 85
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 32
10
- version: 1.0.32
9
+ - 33
10
+ version: 1.0.33
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mandrill Devs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-06-06 00:00:00 Z
18
+ date: 2013-06-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: json