Skip to content

Instantly share code, notes, and snippets.

@mickeb
Created April 8, 2010 18:44
Show Gist options
  • Save mickeb/360385 to your computer and use it in GitHub Desktop.
Save mickeb/360385 to your computer and use it in GitHub Desktop.
require "action_mailer"
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "railscasts.com",
:user_name => "railscasts",
:password => "secret",
:authentication => "plain",
:enable_starttls_auto => true
}
class BsMailer < ActionMailer::Base
append_view_path ActionView::FileSystemResolver.new("/min/fina/sokvag") # Alltså roten där den börjar leta efter en mapp som heter bs_mailer som innehåller template filer.
# Skriv ut BsMailer.view_paths().inspect för att vilka sökvägar som finns.
default :from => "from@example.com"
end
@Agowan
Copy link

Agowan commented Apr 8, 2010

Good job, exact what im looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment