Manuel,
I tend to set these variables in the config/environment/ files, using
development.rb or production.rb where applicable. That way you can have
different mail servers configured depening on what server you are using.
eg
SENDER_ADDRESS = "sender-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org"
then in notifer.rb
def email_notification
@recipients = "receiver-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org"
@from = SENDER_ADDRESS
...
end
I know that typo uses a database table to store global config settings. When
you login, the system checks to see if the settings are there, and if not,
redirects you to a settings page.
Cheers,
Jordan
On 8/10/05, Manuel Holtgrewe
<purestorm-nlpEiS6K5uusTnJN9+BGXg@public.gmane.org>
wrote:>
> Hi
>
> What''s the best practice to make components configureable, i.e.
set
> sender email addresses in mailers etc.
>
> Regards
>
> Manuel Holtgrewe
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Jordan Brock
Spin Technologies
www.spintech.com.au <http://www.spintech.com.au>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails