Can't send mail with login_engine

Hi,

I am using login_engine REL_1.0.3 and user_engine REL_1.0.2 on Rails
1.1.2. I have been unable to send email using the UserNotify
controller. The config for LoginEngine has been set to
use_email_notification=true.

I know that the ActiveMailer configuration is correct, because I can
use the same configuration in another application without engines and
emails are sent. I tried two seperate ones and they both work.

I set config.action_mailer.raise_delivery_errors = true, but did not
see errors in the logs.

Any ideas what to try next?

  • Rick

Am I in the wrong forum for this question? I am kinda stumped and I am
looking for a clue for a way to resolve this.

  • Rick

Rick H. wrote:

Hi,

I am using login_engine REL_1.0.3 and user_engine REL_1.0.2 on Rails
1.1.2. I have been unable to send email using the UserNotify
controller. The config for LoginEngine has been set to
use_email_notification=true.

I know that the ActiveMailer configuration is correct, because I can
use the same configuration in another application without engines and
emails are sent. I tried two seperate ones and they both work.

I set config.action_mailer.raise_delivery_errors = true, but did not
see errors in the logs.

Any ideas what to try next?

  • Rick

Make sure perform_deliveries is true (default is true, just trying to
help
:slight_smile:

config.action_mailer.perform_deliveries = true

2006/9/6, Rick H. [email protected]:

honglun#12 wrote:

Eduardo R. wrote:

Make sure perform_deliveries is true (default is true, just trying to
help
:slight_smile:

config.action_mailer.perform_deliveries = true

2006/9/6, Rick H. [email protected]:

I am also encountering this problem, and i 've tried to add the line
above to the config/environment.rb under module LoginEngine, seems it
still can’t help~

i ran my apps from script/console, Errors are like this;

?> MemberNotify.deliver_signup(Member.new, “”, “”)
ArgumentError: wrong number of arguments (1 for 2)
from (eval):3:in initialize_template_class' from (eval):3:inrender_message’
from
./script/…/config/…/config/…/vendor/plugins/engines/lib/engines/action_mail er_extensions.rb:59:in
create!' from /usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/base.rb:331:ininitialize’
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in new' from /usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/base.rb:291:inmethod_missing’
from (irb):3

and i d

and then i digged into the action_mailer_extensions.rb, line 59 and find
the error is from the following line:

   @body = render_message(@template, @body) if template_exists

i wonder if it is something related to the @body, but i have no way to
figure it out~ and i 've been searching on the web for 2 days with no
obvious solution!!

helps really appreciated~

Wai-lun

It seems working after i deleted all the override content in the
action_mailer_extensions.rb, remain only this:

Overriding ActionMailer to teach it about Engines…

module ActionMailer
end

but i think it is not the best approach to solve the problem, just
narrow down the scope that something happened in the
action_mailer_extension.rb code

Eduardo R. wrote:

Make sure perform_deliveries is true (default is true, just trying to
help
:slight_smile:

config.action_mailer.perform_deliveries = true

2006/9/6, Rick H. [email protected]:

I am also encountering this problem, and i 've tried to add the line
above to the config/environment.rb under module LoginEngine, seems it
still can’t help~

i ran my apps from script/console, Errors are like this;

?> MemberNotify.deliver_signup(Member.new, "", "")
ArgumentError: wrong number of arguments (1 for 2)
        from (eval):3:in `initialize_template_class'
        from (eval):3:in `render_message'
        from 

./script/…/config/…/config/…/vendor/plugins/engines/lib/engines/action_mailer_extensions.rb:59:in
create!' from /usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/base.rb:331:ininitialize’
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in new' from /usr/lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/base.rb:291:inmethod_missing’
from (irb):3

and i d

and then i digged into the action_mailer_extensions.rb, line 59 and find
the error is from the following line:

   @body = render_message(@template, @body) if template_exists

i wonder if it is something related to the @body, but i have no way to
figure it out~ and i 've been searching on the web for 2 days with no
obvious solution!!

helps really appreciated~

Wai-lun

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs