FAQ - PHP IMAP Fetch Emails

PHP IMAP Fetch Emails

29.06.2016 4954

Since 1.6 it is possible to fetch one or multiple emails accounts and convert them into tickets.

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 you will need following informations.

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

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 installatio 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.

Cron Job

To pull in emails every 10 minutes or so please setup a cronjob to the file email.php.