uvdesk / mailbox-component

The Mailbox component provides tools that allows your helpdesk to process tickets from multiple email sources.
MIT License
22 stars 38 forks source link

When we create a project with docker port no. after that refresh mailbox then shows an error #107

Open komal-sh-27 opened 1 year ago

komal-sh-27 commented 1 year ago

Description
When we create a project with docker port no. after that refresh mailbox then shows an error

How to reproduce
Step 1: Install the project with docker using port number Step 2: Now setup your swiftmailer, email settings, and mailbox then create new ticket or agents. Here mail going successfully with correct url

Step 3: Now refresh mailbox in project root directory then here shows an error like this:

root@73c0dbf0cf26:/var/www/uvdesk# php bin/console uvdesk:refresh-mailbox mailboxtest@gmail.com

# Retrieving mailbox configuration details for mailboxtest@gmail.com:

  - Establishing connection with mailbox
  - Fetching all emails since 03 September 2023
  - Found a total of 10 emails in mailbox since 03 September 2023

  # Processing all found emails iteratively:

    API http://localhost:4002/mailbox/listener

    - Processing email 1 of 2:

      ERROR Failed to connect to localhost port 4002: Connection refused

    - Processing email 2 of 2:

      ERROR Failed to connect to localhost port 4002: Connection refused

- Mailbox refreshed successfully!

Step 4: Here we check it site_url is correct in uvdesk.yaml file like this:

uvdesk:
    site_url: 'localhost:4002'
    upload_manager:
        id: Webkul\UVDesk\CoreFrameworkBundle\FileSystem\UploadManagers\Localhost

If We have removed port no. from _siteurl: 'localhost' then refresh again mailbox so here refreshed successfully without any error and also received emails to customer emails.

But received emails site url links click on here then shows an error because here port no. is not contains.

image

Possible Solution

If we have created a project using port no then should be refresh without any error.