Menu Close Menu
Menu
  • 0
    • Number of items in cart: 0

      • Your cart is empty.
      • Total: $0.00
      • Checkout
  • Pricing
    • Purchase Options
    • Individual Extensions
  • Support
    • Documentation
    • Log a Support Ticket
  • Your Account
    • Register
  • Blog

IMAP Options in Email Support

IMAP Options in Email Support

Add additional connection options to your server connection

When the KBS Email Support extension connects to your mailbox, it does so using the standard IMAP flags. These include the mailbox server host name, the protocol to use (IMAP/POP3), the port number and the transport security.

However, from time to time, you may need to send additional flags in order to obtain a successful connection. This article describes how.

Let’s say, for example, you’re connecting to a mailbox server and that server has a self-signed certificate that cannot be validated publicly. The connection from Email Support will fail as we expect to see a certificate that can be validated.

To resolve this, and successfully connect to your mailbox server, you will need to hook into the kbs_ems_mailbox_additional_flags filter and specify the novalidate-cert as an additional flag.

This can be achieved as follows;

/**
 * Add novalidate-cert flag to mailbox connection for KBS Email Support
 */
function kbs_demo_ems_additional_flags( $flags )  {
    $flags[] = 'novalidate-cert';

    return $flags;
} // kbs_demo_ems_additional_flags
add_filter( 'kbs_ems_mailbox_additional_flags', 'kbs_demo_ems_additional_flags' );

The function above adds the novalidate-cert flag to the filtered $flags array and during connection, KBS Email Support will not validate the certificate, resulting in a successful connection.

Using the kbs_ems_mailbox_additional_flags filter, KBS Email Support, will determine if the $flags array is empty (default), and if it is not, the contents will be imploded onto the end of the IMAP connection string, with each array element separated by a forwards slash (/). The $flags array is run through the array_unique filter before being appended.

A full listing of possible IMAP flags can be found here.


Was this article helpful?

We're working hard to ensure we provide you with useful and relevant documentation to help you get the most out of KB Support.

Please take a moment to let us know if you found this article helpful.

IMAP Options in Email Support

When the KBS Email Support extension connects to your mailbox, it does so using the standard IMAP flags. These include the mailbox server host name, the protocol to use (IMAP/POP3), the port number and the transport security. However, from time to time, you may need to send additional flags in order to obtain a successful connection. This…
KB Article rating: 5.0 based on 1 ratings
Advanced Hooks Email Support Docs Last updated: 15/02/2019

Published by Cristian Raiber

Posts by Cristian Raiber

Post navigation

Previous

Requirements for Email Support

Next

How to Hide Default Form Fields

Contact Details

  • Follow us on Twitter
  • Like us on Facebook
  • Fork us on GitHub

Developer Resources

Plugin Boilerplate

Trello Board

GitHub Repository

Ratings & Satisfaction Docs

  • Configuring Ratings and Satisfaction
  • Advanced Settings

Email Support Docs

  • Plugin Requirements
  • Configuring Email Support
  • Creating New Tickets
  • Replying to Closed Tickets
  • Anonymous Replies in Email Support
  • HTML Emails Tags
  • Email Commands
  • Defining IMAP Flags

KBS REST API Docs

  • Using the REST API
  • Tickets REST API Route
  • Replies REST API Route
  • Articles REST API Route
  • Agents REST API Route
  • Customers REST API Route
  • Companies REST API Route
  • Forms REST API Route
  • Form Fields REST API Route
  • Ticket Categories REST API Route
  • Ticket Departments REST API Route
  • Ticket Source REST API Route

Article Categories

  • Configuration
    • Advanced
    • Getting Started
  • Developer Docs
    • Constants
    • Hooks
  • Extensions
  • FAQs
© 2023 KB Support. All rights reserved.
  • Blog
  • Shop
  • Support
  • Privacy Policy
  • Discount Code