If you're sending the mailer from your controller, you can pass either the whole request hash, or just the host, to the delivery method. If you're using an observer, I don't think that'll work.

I think the way we do it is hardcode the host, and the subdomain is pulled from the database (each account has a unique subdomain, but all on the same host name).

Once you start considering things like host name and subdomains in your app, development gets to be a PITA. I've had very much the same experience as the WUFOO guys w/ this:
http://particletree.com/notebook/subdomains-development-sucks/

On Jun 26, 2007, at 3:24 PM, Glenn Little wrote:

Thanks, but yeah, it doesn't know about the "request" method, so I can't get at request.protocol or request.host.

Do you all just punt at this point and hardwire it in?

Anyone who is using restful authentication, how do you
set @body[:url] in <user>_notifier.rb (where "user" is
whatever you call your user account model)?

        -glenn

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to