mandrill-api 1.0.41 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mandrill/api.rb +5 -2
- metadata +5 -6
data/lib/mandrill/api.rb
CHANGED
@@ -697,6 +697,7 @@ module Mandrill
|
|
697
697
|
# - [String] bcc_address an optional address to receive an exact copy of each recipient's email
|
698
698
|
# - [String] tracking_domain a custom domain to use for tracking opens and clicks instead of mandrillapp.com
|
699
699
|
# - [String] signing_domain a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients)
|
700
|
+
# - [String] return_path_domain a custom domain to use for the messages's return-path
|
700
701
|
# - [Boolean] merge whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided.
|
701
702
|
# - [Array] global_merge_vars global merge variables to use for all recipients. You can override these per recipient.
|
702
703
|
# - [Hash] global_merge_vars[] a single global merge variable
|
@@ -770,6 +771,7 @@ module Mandrill
|
|
770
771
|
# - [String] bcc_address an optional address to receive an exact copy of each recipient's email
|
771
772
|
# - [String] tracking_domain a custom domain to use for tracking opens and clicks instead of mandrillapp.com
|
772
773
|
# - [String] signing_domain a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients)
|
774
|
+
# - [String] return_path_domain a custom domain to use for the messages's return-path
|
773
775
|
# - [Boolean] merge whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided.
|
774
776
|
# - [Array] global_merge_vars global merge variables to use for all recipients. You can override these per recipient.
|
775
777
|
# - [Hash] global_merge_vars[] a single global merge variable
|
@@ -959,14 +961,15 @@ module Mandrill
|
|
959
961
|
# @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.
|
960
962
|
# @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.
|
961
963
|
# @param [String] send_at when this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately.
|
964
|
+
# @param [String] return_path_domain a custom domain to use for the messages's return-path
|
962
965
|
# @return [Array] of structs for each recipient containing the key "email" with the email address and "status" as either "sent", "queued", or "rejected"
|
963
966
|
# - [Hash] return[] the sending results for a single recipient
|
964
967
|
# - [String] email the email address of the recipient
|
965
968
|
# - [String] status the sending status of the recipient - either "sent", "queued", "scheduled", "rejected", or "invalid"
|
966
969
|
# - [String] reject_reason the reason for the rejection if the recipient status is "rejected"
|
967
970
|
# - [String] _id the message's unique id
|
968
|
-
def send_raw(raw_message, from_email=nil, from_name=nil, to=nil, async=false, ip_pool=nil, send_at=nil)
|
969
|
-
_params = {:raw_message => raw_message, :from_email => from_email, :from_name => from_name, :to => to, :async => async, :ip_pool => ip_pool, :send_at => send_at}
|
971
|
+
def send_raw(raw_message, from_email=nil, from_name=nil, to=nil, async=false, ip_pool=nil, send_at=nil, return_path_domain=nil)
|
972
|
+
_params = {:raw_message => raw_message, :from_email => from_email, :from_name => from_name, :to => to, :async => async, :ip_pool => ip_pool, :send_at => send_at, :return_path_domain => return_path_domain}
|
970
973
|
return @master.call 'messages/send-raw', _params
|
971
974
|
end
|
972
975
|
|
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:
|
4
|
+
hash: 67
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 42
|
10
|
+
version: 1.0.42
|
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-08-
|
18
|
+
date: 2013-08-13 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: json
|
@@ -104,10 +104,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
requirements: []
|
105
105
|
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 1.8.
|
107
|
+
rubygems_version: 1.8.15
|
108
108
|
signing_key:
|
109
109
|
specification_version: 3
|
110
110
|
summary: A Ruby API library for the Mandrill email as a service platform.
|
111
111
|
test_files: []
|
112
112
|
|
113
|
-
has_rdoc:
|