[Backgroundrb-devel] problems with ActionMailer

Michael Siebert info at siebert-wd.de
Mon Aug 7 12:10:19 EDT 2006


hrm... exactly the code i posted works for me... huh?

2006/8/7, Rolando Abarca <funkaster at gmail.com>:
>
> On 8/7/06, Michael Siebert <info at siebert-wd.de> wrote:
> > try:
> > in your worker
> >       require File.dirname(__FILE__) +
> > "../../../config/environment.rb"
> >       ActionMailer::Base.template_root =
> > File.expand_path(File.dirname(__FILE__) + "../../../app/views")
> >       NotificationMailer.deliver_daily_report(users, rep,
> > items)
>
> thanks!! that worked... although not exactly like that, this worked:
>
> require File.dirname(__FILE__) + "/../../config/environment.rb"
> ActionMailer::Base.template_root =
> File.expand_path(File.dirname(__FILE__) + "/../../app/views")
>
> Had to add a slash before and only go back two directories...
> --
> rolando -- [[ knowledge is empty, fill it ]] --
> "Tam pro papa quam pro rege bibunt omnes sine lege."
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>



-- 
Michael Siebert <info at siebert-wd.de>

www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060807/ed59dc24/attachment-0001.html 


More information about the Backgroundrb-devel mailing list