| View previous topic :: View next topic |
| Author |
Message |
fa00026
Joined: 20 Feb 2009 Posts: 29
|
Posted: Thu Apr 16, 2009 10:04 pm Post subject: Problem configuring Actionmailer |
|
|
Hello,
I am following the book agile web development with rails (the latest edition) chapter 25, I have done configurations to the ActionMailer, but unable to generate a mailer, and getting this error:
C:/Documents and Settings/Farah/My Documents/NetBeansProjects/depot/config/environment.rb:77: undefined method `|' for :smtp:Symbol (NoMethodError)
from C:/Program Files/NetBeans 6.5/ruby2/jruby-1.1.6/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:110:in `run'
from C:/Documents and Settings/Farah/My Documents/NetBeansProjects/depot/config/environment.rb:13
from C:/Documents and Settings/Farah/My Documents/NetBeansProjects/depot/config/environment.rb:31:in `require'
from C:/Program Files/NetBeans 6.5/ruby2/jruby-1.1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from C:/Program Files/NetBeans 6.5/ruby2/jruby-1.1.6/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/generate.rb:1
from C:/Program Files/NetBeans 6.5/ruby2/jruby-1.1.6/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/generate.rb:31:in `require'
from C:/Program Files/NetBeans 6.5/ruby2/jruby-1.1.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from script\generate:3
Why?
Also, the book mentions about this
but
| Code: |
config.action_mailer.smtp_settings = {
:address => "domain.of.smtp.host.net",
:port => 25,
:domain => "domain.of.sender.net",
:authenticate => :login,
:user_name => "dfgfg",
:password => "sdfgfg"
}
|
But I do not know where to put it in?
Finaly, I do want my application to send emails, so do I need to write this
config.action_mailer.delivery_method = :test[/code]
Appreciate your help thanks
Last edited by fa00026 on Fri Apr 17, 2009 3:49 pm; edited 1 time in total |
|
| Back to top |
|
 |
Erno Mononen Posted via mailing list.
|
Posted: Fri Apr 17, 2009 10:00 am Post subject: Problem configuring Actionmailer |
|
|
Hi,
fa00026 wrote:
| Quote: | Hello,
I am following the book agile web development with rails (the latest edition) chapter 25, I have done configurations to the ActionMailer, but unable to generate a mailer, and getting this error:
C:/Documents and Settings/Farah/My Documents/NetBeansProjects/depot/config/environment.rb:77: undefined method `|' for :smtp:Symbol (NoMethodError)
|
Did you check environment.rb:77 ? Seems that you have a typo there
(apparently something like "some_symbol_object.|").
Erno |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|