Support Tickets - Sometimes I receive an alert about IMAP error

Sometimes I receive an alert about IMAP error

HelpDesk 20.07.2016 2809 Support Status: Closed Solution: Yes efrancou


Hi,

Sometimes I receive an error about IMAP connection. Once or twice a day. How can I disable this?

Following error occured when trying to connect to the mailbox , with username : No such host as ...

Regards


Replies (3)

  • avatar Jerome

    Thank you for your ticket.

    How often do you call the mailbox via cron?

    20.07.2016 0
  • avatar efrancou

    15 minutes.

    20.07.2016 0
  • avatar Jerome

    Ok, you can either check with your mailbox host or you can open the email.php file and find:

    // Ticket error inform the client
    $imaperror = "Following error occured when trying to connect to the mailbox ".$row["mailbox"].", with username ".$row["username"].": ".$imap->getError();
    $mail = new PHPMailer(); // defaults to using php "mail()" or optional SMTP
    if (JAK_SMTP_MAIL) {
    $mail->isSMTP(); // telling the class to use SMTP
    $mail->Host = JAK_SMTPHOST;
    $mail->SMTPAuth = (JAK_SMTP_AUTH ? true : false); // enable SMTP authentication
    $mail->SMTPSecure = JAK_SMTP_PREFIX; // sets the prefix to the server
    $mail->SMTPKeepAlive = (JAK_SMTP_ALIVE ? true : false); // SMTP connection will not close after each email sent
    $mail->Port = JAK_SMTPPORT; // set the SMTP port for the GMAIL server
    $mail->Username = JAK_SMTPUSERNAME; // SMTP account username
    $mail->Password = JAK_SMTPPASSWORD; // SMTP account password
    $mail->setFrom(JAK_EMAIL);
    } else {
    $mail->setFrom(JAK_EMAIL, JAK_TITLE);
    }
    $mail->addAddress(JAK_EMAIL);
    $mail->Subject = "PHP IMAP Error";
    $mail->MsgHTML($imaperror);
    $mail->Send(); // Send email without any warnings

    and remove it.

    20.07.2016 0