Hello everybody, My application will run on different machines with different host names. In most of my emails I have to include a link with the name of the server the email is coming from. So, I decided to use the request.env hash to get the server name. But request.env is not available in ActionMailer. So, I have to pass that variable to each mailing method from the controller, which doesn''t look too good. Is there a better way? Can I hardcode the name of the server somewhere in the configuration (environment.rb ?) and thus make it available everywhere? Thanks, Sergei --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---