Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7591: added_smtp_server_example_to_env_rb.diff

File added_smtp_server_example_to_env_rb.diff, 0.7 kB (added by fearoffish, 1 year ago)
  • environment.rb

    old new  
    5353#   inflect.uncountable %w( fish sheep ) 
    5454# end 
    5555 
     56# Mail setup  
     57# (Uncomment this to configure your server to use an smtp server rather than a local sendmail binary) 
     58# 
     59# ActionMailer::Base.smtp_settings = {  
     60#  :address => "mail.example.com",  
     61#  :port => 25,  
     62#  :domain => "example.com",  
     63#  :authentication => :login,  
     64#  :user_name => "my_smtp_username",  
     65#  :password => "my_smtp_password",  
     66# } 
     67 
    5668# Add new mime types for use in respond_to blocks: 
    5769# Mime::Type.register "text/richtext", :rtf 
    5870# Mime::Type.register "application/x-mobile", :mobile