adds email from address

Robert Whitney 11 years ago
parent
commit
893ced3c25
2 changed files with 3 additions and 2 deletions
  1. 2 1
      .env.example
  2. 1 1
      app/mailers/system_mailer.rb

+ 2 - 1
.env.example

@@ -2,4 +2,5 @@ APP_SECRET_TOKEN=REPLACE_ME_NOW!
2 2
 DOMAIN=localhost:3000
3 3
 GOOGLE_APPS_DOMAIN=your-domain-here.com
4 4
 GMAIL_USERNAME=you@gmail.com
5
-GMAIL_PASSWORD=somepassword
5
+GMAIL_PASSWORD=somepassword
6
+EMAIL_FROM_ADDRESS=from_address@gmail.com

+ 1 - 1
app/mailers/system_mailer.rb

@@ -1,5 +1,5 @@
1 1
 class SystemMailer < ActionMailer::Base
2
-  default from: ENV['GMAIL_USERNAME']
2
+  default from: ENV['EMAIL_FROM_ADDRESS']
3 3
 
4 4
   def send_message(options)
5 5
     @lines = options[:lines]