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

email are not converted into ticket if sent from web form #65

Closed MadBuddha closed 3 years ago

MadBuddha commented 3 years ago

Description
Email is imported but doesn't get converted to ticket.

Example of email submited by website form(non-UVDesk webform):

From: webform@mywebsite.com To: techsupport@mywebsite.com

techsupport@mywebsite.com is a mailbox. The Import from techsupport@mywebsite.com runs smoothly, the email is there, console says it was converted to ticket. When I check the tickets, the ticket is not there. **How to reproduce** Use a contact us web form (non-UVDesk), import the email.
MadBuddha commented 3 years ago

I did dump(curl_error($curlHandler)); die; on pushMessage and got empty string

papnoisanjeev commented 3 years ago

@jmrventura92

Is your site_url is correct in uvdesk.yaml(under config/packages of your project) file ?

MadBuddha commented 3 years ago

@jmrventura92

Is your site_url is correct in uvdesk.yaml(under config/packages of your project) file ?

Hello :)

Yes it is. I'm able to import and convert to tickets emails that are sent directly to the email adress. Works smoothly, no issues. The problem is when the email doesn't come from the user himself but it was submited via web form. In this case my "FROM" email is not the user, but myemail@mywebsite.com

MadBuddha commented 3 years ago

Working Example:

From: user@gmail.com To: techshupport@mywebsite.com

Non-working Example:

From: webform@mywebsite.com To: techsupport@mywebsite.com

Note: In both examples "techsupport@mywebsite.com" is set as mailbox and it's where I run the import and convert command.

papnoisanjeev commented 3 years ago

@jmrventura92

@jmrventura92 Is your site_url is correct in uvdesk.yaml(under config/packages of your project) file ?

Hello :)

Yes it is. I'm able to import and convert to tickets emails that are sent directly to the email adress. Works smoothly, no issues. The problem is when the email doesn't come from the user himself but it was submited via web form. In this case my "FROM" email is not the user, but myemail@mywebsite.com

Ok we will check for indirect emails (in case of web) as well.

MadBuddha commented 3 years ago

Thank you for your time papnoisanjeev

MadBuddha commented 3 years ago

If there's anything I can help you with, let me know

papnoisanjeev commented 3 years ago

@MadBuddha

Locate path in your project: vendor/uvdesk/mailbox-component/Services/MailboxService.php

Open MailboxService.php and replace its code from here.

We are closing it now if still facing you can reopen it.