Page 1 of 1

Send note to custom field email

Posted: 28 Apr 2006, 12:37
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

Posted: 03 May 2006, 10:17
by mbit
Noone has any idea to mail to a custom emailaddress?

Posted: 03 May 2006, 13:05
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.

Posted: 05 May 2006, 10:14
by mbit
Thanks for this info, I will give it a try!!