Project

General

Profile

sending e-mail !!

Added by Adnen Mass almost 11 years ago

Hi, I am coding a redmine plugin. I want do send an e-mail. So what shall I do?

Thanks for help


Replies (3)

RE: sending e-mail !! - Added by Jan Niggemann (redmine.org team member) almost 11 years ago

??? Learn about Action Mailer?
Your question is amazingly detail-less...

RE: sending e-mail !! - Added by Adnen Mass almost 11 years ago

My problem is how to use the Action Mailer of Redmine in my plugin because when I use an other Action Mailer, I have to configure both of them(it is not good).

def new
begin
@nouvelle_remarque = Remarque.new
@nouvelle_remarque = Remarque.create(:project_id => @project.id ,
:version_id => params[:version] ,
:assigned_to_id => params[:assigned_to_id] )
if @nouvelle_remarque.save
flash[:notice] ="ok"
#send e-mail
else
flash[:error] ="ko"
end
end
end

RE: sending e-mail !! - Added by Etienne Massip almost 11 years ago

I think you have to extend Redmine Mailer and add your own methods.

    (1-3/3)