Permalink
Browse files

Added a comma

  • Loading branch information...
1 parent 0ba326e commit 633ffbeea6c5f91c1ed12877dc5e2ad2246cd9a8 Guille Carlos committed Feb 6, 2011
Showing with 15 additions and 1 deletion.
  1. +14 −0 README
  2. +1 −1 README.rdoc
View
14 README
@@ -44,6 +44,20 @@ Currently you can:
}
e = AmazonEmail.new(options_2)
+
+ * Email multiple people
+ You can achieve this by sending a Array in the :to field of the options
+
+ options_3 = {
+ :from => 'from@email.com',
+ :to => ['to@email.com', 'to_2@email.com', 'to_3@email.com'],
+ :subject => 'This is the subject of the email',
+ :aws_access_key => "access_key_id",
+ :aws_secret_key => "secret_access_key",
+ :template => File.new("sample_email.erb").read
+ }
+ e = AmazinEmail.new(options_3)
+
2. Send it
View
@@ -50,7 +50,7 @@ Currently you can:
options_3 = {
:from => 'from@email.com',
- :to => ['to@email.com', 'to_2@email.com', 'to_3@email.com']
+ :to => ['to@email.com', 'to_2@email.com', 'to_3@email.com'],
:subject => 'This is the subject of the email',
:aws_access_key => "access_key_id",
:aws_secret_key => "secret_access_key",

0 comments on commit 633ffbe

Please sign in to comment.