Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See local_env.yml.jw to see these settings pulled into the digital collections local_env.yml settings file.

Settings in scihist_digicoll code

app/lib/scihist_digicoll/env.rb and config/environments/production.rb add the settings to the settings. To view them in the console, try:

Rails.application.config.action_mailer.smtp_settings
{:address=>"email-smtp.us-east-1.amazonaws.com",
:port=>587,
:user_name=>"joe",
:password=>"schmo",
:authentication=>:login,
:enable_starttls_auto=>true}

Sending a test email from the console

ActionMailer::Base.mail(from: 'no-reply@sciencehistory.org', to: 'erubeiz@sciencehistory.org', subject: 'Test message from Eddie. Please ignore.', content_type: 'text/html', body: 'Testing').deliver_now