Page 1 of 1

Auto Reply

Posted: 30 Jan 2012, 15:56
by brijmitchell
Hi,

Wondering is someone could me, we have recently upgraded to the latest and greatest version of Mantis, and i have installed the Email Reporting plugin.

The plugin is brilliant and i was able to set it up in a few hours and now able to raise tickets via email.

I am having one problem though, when a user sends a email they should get a email reply stating that the ticket has been raised, this is not the case as you probably know this makes it difficult for users to update the ticket via a note as they cant reply to a email as they are not getting one sent to them.


Emails in general are working in mantis so im the manager so if anyone raises a ticket i am notified via email, but its just when someone sends a email to raise a ticket they should get a "auto-reply"

Is there a setting i have missed somewhere or some configuration in the code that needs amending.

Thanks for your help in advanced

Brian Mitchell

Re: Auto Reply

Posted: 30 Jan 2012, 17:04
by SL-Gundam
Normally users do not get emails about their own actions. This setting is called "email_receive_own".

The overwrite this setting only for EmailReporting please use: "Should users receive emails for their own actions (N/A if email_receive_own = ON)"

Further requirements are of course that a email address is connected to their account and that they are marked as the reporter. So if the fallback/default mail reporter is used, this will not work

Re: Auto Reply

Posted: 31 Jan 2012, 10:12
by brijmitchell
I know this to be true, i see the option for users receiving emails for their actions.

This is a different problem though, i thought it was possible to get a reply back from mantis when you send a email to raise a ticket.

so if you send a email to bugs@mantis-help.com, it will log a ticket in mantis for you and then send a reply back to you stating that your ticket has been logged here is you ticket number etc, regardless if the user sending the email has a account/login for that particular version of mantis.

I know setting the option of users receive notifications would work but then they would be getting emails left right and centre for everything they do in mantis and this is something we cant have.

Is this even possible with mantis, or do we have to wait for a upgrade?

Re: Auto Reply

Posted: 31 Jan 2012, 10:40
by cas
This makes sense and would mean an adjustment to the plugin, simply replying to the sender of the email.

Re: Auto Reply

Posted: 31 Jan 2012, 15:50
by brijmitchell
Would you know of anywhere where this has been done in mantis before, i cant seem to find anything on the situation.

Re: Auto Reply

Posted: 31 Jan 2012, 17:39
by SL-Gundam
I know somebody wrote something like that once for cas's recmail plugin if i'm not mistaken. See the old issue if you want to try finding it: http://www.mantisbt.org/bugs/view.php?id=4286

But i opted to use the functionality that is available to me in mantis as much as possible and MantisBT does not allow emailing to users who do not have a valid email address connected to an account. I'm not planning on changing this unless the MantisBT core would offer me that functionality which seems unlikely.

But if you feel this is necessary for you you can always write a new plugin that attaches itself to EmailReporting and add the functionality you need

Also you can always set up your notification system so that reporters only get emails about newly created issues. Enabling the email_receive_own effectively will make sure they only receive that particular email and allmost nothing after that. I say almost as i've not yet seen a way to manipulate the notifications for relationship modifications

Re: Auto Reply

Posted: 03 Feb 2012, 13:00
by cas
@SL-Gundam, i do not think that Mantis blocks you from sending an email to an email address which is not available in the database.
I created a "forward" plugin (see attached) sometime ago which allows someone to send the issue to an external party. I am using the standard mantis functionality for this and emails do arrive at the given address.
Do agree that there are various ways of getting notifications out of mantis :mrgreen:

Re: Auto Reply

Posted: 03 Feb 2012, 17:24
by SL-Gundam
It requires direct access to the emailing functions and EmailReporting must create its own email contents. I would like to use the existing mail templates and as far as i know its not possible to use those without an existing user account. See the function "email_bug_info_to_one_user" or "email_bug_reminder". Their is no existing variant that can be used when you only have a email address unless you copy those functions and modify them as required.

In my opinion EmailReporting should not create any email contents. That should be handled by a secondary plugin or the MantisBT core.

Just imagine what would happen if we added this code. EmailReporting would email to non-existing users and the next problem would be responses to spam and the responses to that that would flow into EmailReporting.

MantisBT requires by default that users verify their email addresses through a email sent to that email address. Such protection would not be available in the above situations