ficonabses 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +11 -2
- data/lib/ficonabses/base.rb +6 -0
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -47,8 +47,8 @@ A simple way to send emails from your application using amazon ses. Register at
|
|
47
47
|
f=FiconabSES::Base.new
|
48
48
|
options={}
|
49
49
|
options['customername']='Mr Test' #in the template {customername} will be replaced with Mr Test
|
50
|
-
f.set_credentials(@account,@passwd
|
51
|
-
res =f.
|
50
|
+
f.set_credentials(@account,@passwd)
|
51
|
+
res =f.send_template_params(@destination,'testtemplate',options)
|
52
52
|
|
53
53
|
== SYNOPSIS SENDING RUBY EXCEPTION
|
54
54
|
* This allows you mail a ruby exception report directly from your application.
|
@@ -57,6 +57,15 @@ A simple way to send emails from your application using amazon ses. Register at
|
|
57
57
|
== CAMPAIGN FLOWS
|
58
58
|
* This allows you structure a sequence of emails/customer interaction based on parameters. (eg you could email the customer something and send them an apple push notification at the same time)
|
59
59
|
|
60
|
+
* Exactly the same calling sequence as for templates.
|
61
|
+
f=FiconabSES::Base.new
|
62
|
+
options={}
|
63
|
+
options['customername']='Mr Test' #in the template {customername} will be replaced with Mr Test
|
64
|
+
f.set_credentials(@account,@passwd)
|
65
|
+
res =@f.send_campaign_flow(@destination,'testcampaign',options)
|
66
|
+
|
67
|
+
|
68
|
+
|
60
69
|
==BINARY FILES
|
61
70
|
* ficonabses_template_test.rb - Send a template to a destination. Type 'ficonabses_template_test.rb --help' in a terminal on your cmpueter for more information
|
62
71
|
* fionabses_csv.rb - Send the contents of csv file to the system for email broadcash. The file should be in destination,templatename,param1,params2 format with headers. A sample file follows:
|
data/lib/ficonabses/base.rb
CHANGED
@@ -169,6 +169,12 @@ module FiconabSES
|
|
169
169
|
perform(url)
|
170
170
|
# res
|
171
171
|
end
|
172
|
+
def send_campaign_flow_old(destination,campaign_name,options={})
|
173
|
+
url=self.campaign_flow_params(destination,campaign_name,options)
|
174
|
+
# puts "url is: #{url}"
|
175
|
+
perform(url)
|
176
|
+
# res
|
177
|
+
end
|
172
178
|
def send_htmlemail(destination,subject,htmlcontents,textcontents=nil)
|
173
179
|
textcontents='-' if textcontents==nil
|
174
180
|
url=self.html_url(destination,subject,textcontents,htmlcontents)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 8
|
9
|
+
version: 0.3.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Scott Sproule
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-05-
|
17
|
+
date: 2012-05-27 00:00:00 +08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|