FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Problem configuring Actionmailer

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
fa00026



Joined: 20 Feb 2009
Posts: 29

PostPosted: Thu Apr 16, 2009 10:04 pm    Post subject: Problem configuring Actionmailer Reply with 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)
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
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Fri Apr 17, 2009 10:00 am    Post subject: Problem configuring Actionmailer Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB