Jason Lenhart on 5 Feb 2006 13:58:08 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PhillyOnRails] Action Mailer


Hi,

I am new to RoR  - and trying to setup up the
ActionMailer.  Wondering if anyone might be able to
help out a newbie.

So I have gone into my /config/  development,test, and
production files and placed the following entries:


config.action_mailer.delivery_method = :smtp
config.action_mailer.address =
smtp.designedfinishesinc.comment
config.action_mailer.authentication = login
config.action_mailer.user_name = user
config.action_mailer.user_name = pass

I have a feeling the above is my problem - but then I
go to create my mailer:

ruby script/generate mailer ContactMailer confirm sent

and I get the following:

/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/initializer.rb:171:in
`load_environment': undefined method
`designedfinishesinc' for :smtp:Symbol (NoMethodError)
        from
/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/initializer.rb:150:in
`load_environment'
        from
/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/initializer.rb:147:in
`silence_warnings'
        from
/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/initializer.rb:147:in
`load_environment'
        from
/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/initializer.rb:73:in
`process'
        from
/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/initializer.rb:36:in
`send'
        from
/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/initializer.rb:36:in
`run'
        from
./script/../config/../config/environment.rb:10
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active_support/dependencies.rb:213:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/commands/generate.rb:1
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__'
        from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active_support/dependencies.rb:213:in
`require'
        from script/generate:3

Thank you,

Jason


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
talk mailing list
talk@phillyonrails.org
http://lists.phillyonrails.org/mailman/listinfo/talk