uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
Open Software License 3.0
9.13k stars 464 forks source link

UVDESK in windows XAMPP not receiving incoming emails. #691

Closed marvelindxb closed 1 year ago

marvelindxb commented 1 year ago

Discussed in https://github.com/uvdesk/community-skeleton/discussions/690

Originally posted by **marvelindxb** August 21, 2023 Dear Folks, I installed a UVdesk in windows XAMPP for testing. I'm not receiving any incoming email, but SMTP is working fine. any fix?

After the php syncing it started showing the below error message. " - Establishing connection with mailbox

marvelindxb commented 1 year ago

image This is the error I'm getting.

marvelindxb commented 1 year ago

image

Please look into it to put it in a test run.

komal-sh-27 commented 1 year ago

@marvelindxb,

Can you please share the project log files available in the you-project-folder/var/log directory relative to your project directory. dev log-file

In case these files are of large size, I would first suggest you to delete these files and try refreshing your mailbox again.

In case of any issues, they should be logged into the newly generated log files accordingly. You can then share these log files with us which would help us look into what went wrong and where.

marvelindxb commented 1 year ago

This is the requested log file! dev1.log

marvelindxb commented 1 year ago

Any update on this issue @UVdesk Team???

akshaywebkul commented 1 year ago

Hello marvel,

Do you have access to postman that can be used debug the issue? If so, I'll share with you steps on how you can go about debugging this issue.

marvelindxb commented 1 year ago

Sure I can do that, if you guide me and update you the result.

marvelindxb commented 1 year ago

Good morning, waiting for the update? Any luck!!!

komal-sh-27 commented 1 year ago

Hello marvel,

Please follow the below steps for postman debug:

Step 1: First you will fetch the mailbox command here you shown an error while fetching emails

Step 2: Now you will be some changes in your code in RefreshMailboxCommand.php file follow the below path:

vendor/uvdesk/mailbox-component/Console/RefreshMailboxCommand.php

Add the below code in your code for download emails content in local. Also, attached a screenshot:

// Download emails
$timestamp = time();
file_put_contents(getcwd() . "/var/mail-$timestamp.eml", $message);

Screenshot from 2023-08-29 18-45-16

Step 3: Now go to the MailboxChannelXHR.php file follow the below path:

vendor/uvdesk/mailbox-component/Controller/MailboxChannelXHR.php

And add this line above of try catch :

$processedThread = $this->mailboxService->processMail($request->get('email'));

Check the below screenshots add like this:

Screenshot from 2023-08-29 18-44-55

Step 4: Now refresh the mailbox command again and here shows your mails downloads with email contents. You can check the downloaded email on var/emails

Screenshot from 2023-08-29 19-22-23

Step 5: Now open your terminal when you have refreshed your mailbox command. Here you will be shown a api mailbox url copy this url: [http://localhost/uvdesk-latest/hd-1.1.3/public/mailbox/listener]

Screenshot from 2023-08-29 19-24-14

Step 6: Now open the postman and add this email content.

Action:: Post
Requested-url: http://your-helpdesk-url/public/mailbox/listener
Key:: email
Value:: email-raw-content

image

After that click on send button and here you will be shown a email exception if any error and check it.

Kind Respects, Uvdesk Team

marvelindxb commented 1 year ago

it is still showing the same error

marvelindxb commented 1 year ago

image Additionsaly I checked with postman also and found this error.

komal-sh-27 commented 1 year ago

@marvelindxb ,

Let us know, you are still facing the same issue or not. At this moment, we are closing this issue. If you have still facing the same issue then you can reply on the same thread.

Thanks and Regards Uvdesk Team