Redmine Windows Receiving emails
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:
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 firstname.lastname@example.org password=******
Thanks in advance.
RE: Redmine Windows Receiving emails - Added by Alan MacK 3 months ago
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\
@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 email@example.com password=*****
RE: Redmine Windows Receiving emails - Added by C S 3 months 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.