error on ActionMailer

125 views
Skip to first unread message

Kevin

unread,
May 30, 2011, 5:05:17 AM5/30/11
to Fat Free CRM Users
Hi all,

Install a new server again, run manual install, everything pass.

when i go to http://localhost:3000

i got this error


RuntimeError in HomesController#index
You can no longer call ActionMailer::Base.default_url_options
directly. You need to set config.action_mailer.default_url_options. If
you are using ActionMailer standalone, you need to include the routing
url_helpers directly.

if any know how to solve this, that will be great, really tired on
this, but Fat free CRM is a good software.

thanks
Kevin

Kevin

unread,
Jun 7, 2011, 1:29:39 AM6/7/11
to Fat Free CRM Users
anyone can help?

thanks
Kevin

On May 30, 5:05 pm, Kevin <tojian...@gmail.com> wrote:
> Hi all,
>
> Install a new server again, run manual install, everything pass.
>
> when i go tohttp://localhost:3000

Scott Levy

unread,
Jun 7, 2011, 7:48:34 PM6/7/11
to Fat Free CRM Users
If you have a look at this post

http://stackoverflow.com/questions/5609756/rails-devise-mailer-throwing-config-action-mailer-default-url-options-erro

In the response/ section " MyProject::Application.configure do...

ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:enable_starttls_auto => true,
:port => 587,
:authentication => :plain,
:user_name => "us...@domain.com",
:password => 'password'
}

config.action_mailer.default_url_options = { :host =>
'dev.mydomain.com' }

That seemed to do it for me though I have not tested enough to know
which specific change. best...s

Kevin

unread,
Jun 8, 2011, 10:49:58 PM6/8/11
to Fat Free CRM Users
thank you Scott, it finally works.

Kevin

On Jun 8, 7:48 am, Scott Levy <scott.l...@w3management.com> wrote:
> If you have a look at this post
>
> http://stackoverflow.com/questions/5609756/rails-devise-mailer-throwi...
>
> In the response/ section  " MyProject::Application.configure do...
>
> ActionMailer::Base.smtp_settings = {
>     :address => "smtp.gmail.com",
>     :enable_starttls_auto => true,
>     :port => 587,
>     :authentication => :plain,
>     :user_name => "u...@domain.com",
Reply all
Reply to author
Forward
0 new messages