Runner: url_for with mailers impossible

I created a runner script to send a newsletter. I found this hack where
you pass a controller and specify a helper:

http://wiki.rubyonrails.org/rails/pages/HowtoUseUrlHelpersWithActionMailer

But in a runner script there is no controller to pass. So, it looks like
it’s impossible to use url_for in the mailer template this way.

Another way around the no url_for problem is to pass the generated url
to the mailer, but again there is no controller in runner scripts.

Impossible?

Joe

Joe (or anyone else),

Did you ever find a solution to this problem? Thanks.

Ben

Joe wrote:

I created a runner script to send a newsletter. I found this hack where
you pass a controller and specify a helper:

http://wiki.rubyonrails.org/rails/pages/HowtoUseUrlHelpersWithActionMailer

But in a runner script there is no controller to pass. So, it looks like
it’s impossible to use url_for in the mailer template this way.

Another way around the no url_for problem is to pass the generated url
to the mailer, but again there is no controller in runner scripts.

Impossible?

Joe