FAQ - Email to Tickets (PHP IMAP)

Email to Tickets (PHP IMAP)

26.10.2017 5002


With HelpDesk 3 it is possible to fetch one or multiple emails accounts and convert them into tickets.

IMPORTANT: Use a unique email address for the PHP IMAP, do not use this email address anywhere else or in your email client.

Minimum requirements on your server to run PHP IMAP:

  • PHP IMAP extension installed.
  • Cronjob to run every 10 minutes or whatever it suits you best and your email account settings.

To setup PHP IMAP in HelpDesk 3 you will need following informations.

  • Support Department, where we will create the ticket.
  • Mailbox
  • Username
  • Password
  • Encryption (ssl, tls or blank)
  • Folder to scan (e.g. INBOX)
  • Unique Email Address
php imap helpdesk 3

You can setup as many email accounts you want, that will give you finally the freedom to have all your web projects under one roof.

We suggest to run your settings in a test installation first (with your license you are allowed to have one live and one test installation with the same license key), otherwise you might end up with a lot of unwanted tickets.

Mailbox IMAP

  • Virtualmin and most server: Mailservername/imap
  • Gmail: imap.gmail.com:993/imap/ssl

Mailbox Pop

  • Virtualmin and most server: Mailservername/pop3
  • Gmail: pop.gmail.com:995/pop3/ssl

As always with Gmail it will be a bit tricky. Once you get the login error, sign out of all your google accounts. Then, visit this link: Unlock Captcha and turn on accessing from less secure apps: Less secure apps.

New Emails only

To speed up the process each time the email account is opended we only collect unread emails and as soon the email has been fetched it will marked as read. Email addresses that has been blocked within the operator panel will be marked as read without processing them.

You can also set to delete emails after they have been fetched, the option is in your operator panel - settings.

Cron Job

To pull in emails every 10 minutes please setup a cronjob to the file cron/phpimap.php within your control panel.