Skip to content
Browse files

Ensuring emails actually go out from development environment by setti…

…ng gmail username and password on env
  • Loading branch information...
1 parent 18cf083 commit 625cb29b04606a538b838796ca3a55303137b432 @nahurst committed Mar 17, 2013
View
4 app/assets/javascripts/application.js
@@ -25,10 +25,6 @@ APP = {
},
'display': function(data, tabletop) {
$("#mail_merge_data").val(JSON.stringify(data));
- //for(var i = 0; i < data.length; i++) {
- //var output = Mustache.render("Say {{greeting}} to {{name}} from {{company}}", data[i]);
- //alert(output);
- //}
}
},
}
View
4 app/views/mail_merges/_form.html.erb
@@ -15,6 +15,10 @@
<%= f.hidden_field :data %>
<div class="field">
+ <%= f.label :from %><br />
+ <%= f.text_field :from %>
+ </div>
+ <div class="field">
<%= f.label :subject_template %><br />
<%= f.text_field :subject_template %>
</div>
View
2 config/environments/development.rb
@@ -17,7 +17,7 @@
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.delivery_method = :smtp
# change to true to allow email to be sent during development
- config.action_mailer.perform_deliveries = false
+ config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default :charset => "utf-8"

0 comments on commit 625cb29

Please sign in to comment.
Something went wrong with that request. Please try again.