Project

General

Profile

Redmine Windows Receiving emails

Added by Alan MacK about 3 years ago

Hi Guys,

I am trying to configure our Redmine instance to generate tickets from an email.

We use a gmail account for sending redmine email/

I now wish to generate issues by sending an email to our gmail account.

I am following instructions on Fetching emails from an IMAP server here:
https://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails

However I note that for this instruction "For Windows as server pycron can be used to schedule a fetch task." the pycron is not available.

Does anyone have any info on configuring this to work on a Windows Server to read the inbox in Gmail?

I am guessing that this is all that needs to be performed at intervals to obtain/read the inbox?

rake -f C:\Bitnami\redmine-4.2.2-0\apps\redmine\htdocs\Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com username=******@gmail.com password=******

Thanks in advance.


Replies (4)

RE: Redmine Windows Receiving emails - Added by Alan MacK about 3 years ago

Update:

I now have this working - for any others out there wanting to know an easy method for a windows server and gmail, create a batch file with below content then set a task in windows task scheduler to run every 10 mins or so.

You will need to add the folders in the gmail account, e.g. Success and Failed

I put my email.bat file into - C:\~~~~\redmineFolder\apps\redmine\
Modify Accordingly:


@echo off

echo Fetch general Redmine mails

CALL C:\~~~~~\redmineFOLDER\scripts\setenv.bat
CALL rake -f C:\~~~~~\redmineFOLDER\apps\redmine\htdocs\Rakefile redmine:email:receive_imap RAILS_ENV="production" project=foo tracker=bug allow_override=project,priority,tracker move_on_success=Success move_on_failure=Failed host=imap.gmail.com port=993 SSL=true username=*****@gmail.com password=*****

RE: Redmine Windows Receiving emails - Added by C S about 3 years ago

Have you generated an app password for the query at Gmail / Google? This is necessary with this type of polling because it is a "non-secure" type.

https://support.google.com/mail/answer/185833?hl=en

RE: Redmine Windows Receiving emails - Added by NISA SHAH almost 3 years ago

hi, may i ask, is it applicable for yahoo mail, i've also follow the instruction inside the link you attach, but it seems cannot working for my side. is there anything that i miss out to configure. thanks in advance!

RE: Redmine Windows Receiving emails - Added by NISA SHAH almost 3 years ago

Alan MacK wrote:

Update:

I now have this working - for any others out there wanting to know an easy method for a windows server and gmail, create a batch file with below content then set a task in windows task scheduler to run every 10 mins or so.

You will need to add the folders in the gmail account, e.g. Success and Failed

I put my email.bat file into - C:\~~~~\redmineFolder\apps\redmine\
Modify Accordingly:
[...]

also got try this, but i cant see this working for me, can advice is there is anything that i need to configure?

    (1-4/4)