I''m following along in AWDWR on how to set up ActionMailer. However after following the configuration and trying to generate the Mailer files I''m getting the error below. First here is the configuration (which is within the config/environments/development) btw I''m blaming my username and password. # Base delivery ActionMailer::Base.delivery_method = :smtp | :sendmail | :test (btw, I''m a bit unsure about the "test" param. As I do want to send the email) ActionMailer::Base.server_settings = { :address => "smtp.*********.com", :port => 25, :domain => "*********.com", :authentication => :plain, :user_name => "**********", :password => "*******", } ActionMailer::Base.default_charset = "utf-8" C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:191:in `load_environment'': undefined method ` |'' for :smtp:Symbol (NoMethodError) from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:168:in `load_environment'' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reportin g.rb:11:in `silence_warnings'' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:165:in `load_environment'' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:82:in `process'' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/initializer.rb:42:in `run'' from ./script/../config/../config/environment.rb:13 from C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require''from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/commands/generate.rb:1 from C:/instantrails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from C:/instantrails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require''from script/generate:3 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Michael Modica
2006-Aug-22 17:26 UTC
[Rails] Re: Configuring ActionMailer - problem - help
Try just one of the options and remove the pipe! # Base delivery ActionMailer::Base.delivery_method = :smtp Regards, Michael -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Worked ................thank you! Stuart On 8/22/06, Michael Modica <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Try just one of the options and remove the pipe! > > # Base delivery > ActionMailer::Base.delivery_method = :smtp > > Regards, > > Michael > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---