Project

General

Profile

custom_workflow email template problem

Added by Tibor Kreiter almost 8 years ago

Hi,

I want to use custom_workflow plugin email functions but it dosen't work correctly.I can't send my template email. I use redmine 2.2.2 ruby 1.9.3 and rails 2.3.1.
If I want to send my template email it send always the custom_email instead my template. I set up the :template_name in my script but it isen't work.

here is my code:

Mailer.custom_email(
:subject => 'New redmine mail',
:user => User.find(443),:template_name => 'other').deliver
I have in plugins/custom_workflows/app/views/mailer 4 files: custom.html.erb, custom.text.erb, other.html.erb,other.text.erb and i want to send the other.html.erb to email but it send always the custom file.
Have anybody an idea what is the problem?
Thank you for help.


Replies (2)

RE: custom_workflow email template problem - Added by Tibor Kreiter almost 8 years ago

Tibor Kreiter wrote:

Hi,

I want to use custom_workflow plugin email functions but it dosen't work correctly.I can't send my template email. I use redmine 2.2.2 ruby 1.9.3 and rails 2.3.1.
If I want to send my template email it send always the custom_email instead my template. I set up the :template_name in my script but it isen't work.

here is my code:

Mailer.custom_email(
:subject => 'New redmine mail',
:user => User.find(443),:template_name => 'other').deliver
I have in plugins/custom_workflows/app/views/mailer 4 files: custom.html.erb, custom.text.erb, other.html.erb,other.text.erb and i want to send the other.html.erb to email but it send always the custom file.
Have anybody an idea what is the problem?
Thank you for help.

I need help about this because I have to use the mailer of custom workflow. Please help me somebody. Thank you!

RE: custom_workflow email template problem - Added by Colin McHugo almost 8 years ago

Hi did you get an answer to this outside this forum Tibor? As i want to do something similar, thanks. Colin

    (1-2/2)