In this post I will explain how to automate the conversion of email messages in Redmine tickets, via RedmineUP Helpdesk plugin, when Redmine is installed on a Windows server, where cronjobs don’t work.
Helpdesk plugin by RedmineUP
This plugin is being the protagonist in my last works of implementation of Redmine in companies and organizations. It is increasingly used both to provide external support and, above all, to provide internal support, when we do not need our internal customers to be Redmine users as well.
With Helpdesk plugin we can give support through Redmine interacting with the customer via email. This way we don’t need to train the users in the use of Redmine to give them support.
The plugin allows Redmine to turn emails into tasks. To do this, you have to click on the “Get mail” link in the plugin configuration tab for each project where the Helpdesk module is activated. Obviously this is not operational, as it is a manual task that we should not take care of.
We must therefore create a scheduled task that simulates the “receive messages” action.
These are the steps to follow:
- Install cURL
- Get the URL that the program will check for emails in the Helpdesk mailbox
- Create a scheduled task in Windows that every x minutes asks the CURL program to check that URL.
1. Install cURL
cURL is a program designed to obtain FTP files and URL pages (cURL=”see” URL).
You can download it here for free: https://curl.haxx.se/download.html#Win64
Simply download the file, unzip it and take note of the path where the.exe you are storing the program (look in the /src/ folder of the program). You don’t have to install or run it, just save it on your server.
2. Get the URL to check
La estructura de la URL que tendrá que comprobar cURL es ésta:
The structure of the URL that cURL will need to check is this:
Instead of “127.0.0.1” indicate your Redmine’s URL.
You will have to change the asterisks by the API key of your Redmine. You can check this key in Administration > Settings > Incoming emails > Incoming email WS API key. If the key has not yet been generated, select “Enable WS for incoming emails” and click “Generate a key”. Then save the changes.
Note: this URL simultaneously checks each and every mailbox you have configured in the different projects with the Helpdesk module enabled.
3. Create a scheduled task in Windows
Finally, all that’s left to do is create a scheduled task in Windows. To do this, we locate the Task Scheduler program and
- click on “Create Task” option
- name the task (e.g. Get mail)
- in Actions tab, click on New
> Action: Start a program
> Browse to find curl.exe (locate it on the route we’ve pointed out before.)
> in Add arguments indicate the URL we had in point 2
> in Triggers, we will indicate how often we want to check for messages in the mailbox (recommended: 5 minutes)
Last we accept all changes made.
Y así ya tenemos la tarea programada creada y lista para convertir los mensajes que vayan llegando al buzón en tareas de Redmine y tickets del Helpdesk.
And so we have created the scheduled task and the plugin is ready to convert the emails into Redmine tasks and Helpdesk tickets.
What do you think of this solution? If you liked it, please share it on social networks 😉 Thank you!
Ah…. If you like the Redmine theme you see in the first picture, it’s Boostmine!