Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UVDESK in windows XAMPP not receiving incoming emails. #691

Closed
marvelindxb opened this issue Aug 22, 2023 Discussed in #690 · 12 comments
Closed

UVDESK in windows XAMPP not receiving incoming emails. #691

marvelindxb opened this issue Aug 22, 2023 Discussed in #690 · 12 comments
Labels
Mailbox Related to mail

Comments

@marvelindxb
Copy link

Discussed in #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

  • Fetching all emails since 21 August 2023
  • Found a total of 15 emails in mailbox since 21 August 2023

Processing all found emails iteratively:

API http://10.108.0.150/uvdesk/public/mailbox/listener

- Processing email 1 of 15:

An unexpected error occurred: Warning: Trying to access array offset on value of type null"

@marvelindxb
Copy link
Author

image
This is the error I'm getting.

@marvelindxb
Copy link
Author

image

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

@komal-sh-27
Copy link
Contributor

@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
Copy link
Author

This is the requested log file!
dev1.log

@marvelindxb
Copy link
Author

Any update on this issue @uvdesk Team???

@akshaywebkul
Copy link

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
Copy link
Author

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

@marvelindxb
Copy link
Author

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

@komal-sh-27
Copy link
Contributor

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
Copy link
Author

it is still showing the same error

@marvelindxb
Copy link
Author

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

@komal-sh-27
Copy link
Contributor

@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

@komal-sh-27 komal-sh-27 added the Mailbox Related to mail label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mailbox Related to mail
Projects
None yet
Development

No branches or pull requests

3 participants