moved action mailer stuff to environment.rb