Project

General

Profile

Ruby 3.2 mailer.rb get url from website

Added by Knut Krüger over 8 years ago

I am not familiar with ruby so... how can I get the wbsite url at

line 38 options[:host] = Setting.host_name

f.e project.mydomain.com

I added in the redmine/settings?tab=general -> hostname f.e [URL] and if [URL] is given i would take the url from the website.
the if branch is working.

The only problem is to get the url there.