# Load the Rails application. require_relative 'application' ActionMailer::Base.smtp_settings = { :user_name => 'apikey', # This is the string literal 'apikey', NOT the ID of your API key :password => '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', # This is the secret sendgrid API key which was issued during API key creation :domain => 'matrixnodes.com', :address => 'smtp.sendgrid.net', :port => 587, :authentication => :plain, :enable_starttls_auto => true } # Initialize the Rails application. Rails.application.initialize! Rails.env="production"