Send note to custom field email

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
mbit
Posts: 3
Joined: 28 Apr 2006, 12:32

Send note to custom field email

Post by mbit »

Hi!!

I am adding mantisconnect funtionality to our mantis environment, this is great! :D But I need some functionality I can't find.

I use a form that submits bugs using mantisconnect (they all use the same user in mantis). In this form is a custom field email that also shows up in Mantis.

When I add a note to the bug I need this to be mailed to the emailaddress as specified in the custom field "email"

Is this possible? It would really complete our mantis (connect) implementation.

Thx in advance,
Michiel
mbit
Posts: 3
Joined: 28 Apr 2006, 12:32

Post by mbit »

Noone has any idea to mail to a custom emailaddress?
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

Not 'out of the box'.

What I would suggest, however, is writing a custom issue action handler. Check out core/custom_function_api.php. Take for example the function custom_function_default_issue_create_notify(). It is called after an issue is created.

Now: in /custom_functions_inc.php you need to create a function that takes the same parameters and returns the errors as commented. That function needs to be called custom_function_override_issue_create_notify().

In that function, you should be able to write pretty much any action you wish to, which could obviously include 'emailing email addresses in custom field X'.

Now whenever an issue is created, your override function will be called and your emails will be sent.

Hope that helps...
Lincoln.
mbit
Posts: 3
Joined: 28 Apr 2006, 12:32

Post by mbit »

Thanks for this info, I will give it a try!!
Post Reply