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
MIT License
7.32k stars 452 forks source link

Email are not sent #578

Closed Ethereumx closed 1 year ago

Ethereumx commented 1 year ago

We are facing a problem that Uvdesk is no more sending emails when creating customers or requesting a new password (forget pwd). We have tried different options (yahoo, Google, smtp/Iamp, ..) but nothing seems to work. For outlook we followed the official guide (with 2f activation) https://www.uvdesk.com/en/blog/outlook-mailbox-configuration-in-uvdesk-open-source-helpdesk/ The fetch seems to work image Any leads?

komal-sh-27 commented 1 year ago

@Ethereumx

First, you need to set up a swift mailer then you will be able to create customers or request a new password will get a mail from your side to set up a password.

Would recommend you to please check your swift mailer settings:

image

For email settings:

image

Share your screenshots of swiftmailer & email settings option.

Ethereumx commented 1 year ago

These are my settings image

image

Ethereumx commented 1 year ago

Maybe this happens because all mail providers no longer accept less secure app login

image

komal-sh-27 commented 1 year ago

@Ethereumx

Now less secure app is disabled from Gmail setting so you can use 2 step verification and create an app password.

For Gmail setup use this blog:

https://www.uvdesk.com/en/blog/setup-mailbox-uvdesk-open-source-helpdesk/

Once you try with the gmail setup if you have any issue let us know.

Ethereumx commented 1 year ago

Is there any why to debug the issue. uvdesk log doesn't seem to report anything related to emailing

komal-sh-27 commented 1 year ago

You can also check this by setting a Gmail account email Id.

Locate the file vendor->uvdesk->core-framework->Services->EmailService.php.

Open the EmailService.php reach to sendMail() function.

and dump() the exception as in the attached image.

It will show the error you are facing while sending mails (if adding an agent, creating a ticket etc).

image

Ethereumx commented 1 year ago

Thanks!