Skip to content

Instantly share code, notes, and snippets.

@smaboshe
Created January 14, 2012 10:16
Show Gist options
  • Save smaboshe/1610899 to your computer and use it in GitHub Desktop.
Save smaboshe/1610899 to your computer and use it in GitHub Desktop.
Set up Email in an initialiser
ActionMailer::Base.smtp_settings = {
address: AppConfig.email_address,
authentication: "plain",
domain: AppConfig.email_domain,
enable_starttls_auto: true,
password: AppConfig.email_password,
port: AppConfig.email_port,
user_name: AppConfig.email_user_name,
}
ActionMailer::Base.default_url_options[:host] = AppConfig.server_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment