Project

General

Profile

My plugin needs to send its own automatic email-notifications, but I don't know how

Added by Riewert Holtermann over 12 years ago

Hello.

I am using:

Ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
RubyGEMs version 1.4.2
Rails version 2.3.5
Application root c:/webserver/redmine
Environment development
Database adapter postgres-pr
Database schema version 20101114115359

My Problem is:

As described above, my plugin needs to send an email, when an object in the database
is created, modified or deleted.
I would like to call the method from inside of my controller.
If I would write a application, not a plugin, I would use ActionMailer connected
to our exchange-server to handle the job. I would write a model-class which inherits
from ActionMailer and call the defs at the point inside of my controller, where I need
to.
I was searching for such actions in the Redmine-Code, but didn't succeed up to now.

I hope anybody knows how to send emails from inside of a plugin and can help me.

Any answer is welcome.

Regards
Riewert