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.15k stars 449 forks source link

Swiftmailer stopped working suddenly #673

Closed steveb85 closed 8 months ago

steveb85 commented 1 year ago

Bug report

Title

Just a quick sentence to brief your trouble with UVDesk or something associated with it. Swiftmailer working fine until this week now error "Warning ! Swiftmailer not working. An error has occurred while sending emails!" after the reply is added

Issue Description

No changes, which makes this odd

Preconditions

Please provide as detailed information about your environment as possible.

1.v1.1.0

Steps to reproduce

It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.

1. create ticket
2. try to reply
komal-sh-27 commented 1 year ago

Swiftmailer working fine until this week now error "Warning ! Swiftmailer not working. An error has occurred while sending emails!" after the reply is added

Let us know, which email service you are using gmail, outlook (normal or office 365 modern auth), yahoo. Also, we are suggested to you once setup again with the app password in your swiftmailer, mailbox, and email settings option.

After that cleared cache of project using the below command:

$ php bin/console c:c

If you have still facing the same issue, then let us know.

steveb85 commented 1 year ago

@Komal-sharma-2712 thanks yes we have office 365, but i also tried with gmail and after both i cleared cache. A few months ago we lost support to check the office 365 but it was still sending through office until this week, even last week it was going fine. thank you.

komal-sh-27 commented 1 year ago

@steveb85

Alright, once you can tried with the below solution for this error: "Warning ! Swiftmailer not working. An error has occurred while sending emails!"

Open the swiftmailer.php file under config->packages in your project.

Disable SSL verification on the server by using this option and make a try.

stream_options:
    ssl:
        verify_peer: false
        verify_peer_name: false
        allow_self_signed: true

image

After that, you will clear the cache of your project run the below command in your project root directory:

$ php bin/console c:c

  Now you can reply to tickets and check swift mailer is working or not.

steveb85 commented 1 year ago

Hey @Komal-sharma-2712 i did htat, no change at all, the same result :(

komal-sh-27 commented 12 months ago

@steveb85 ,

Check once again your settings and add the correct app password of your Email id in the password field.

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

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

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

image   Once done then you just need to reply to the ticket accordingly the error will be reflected.

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

  Another helpful link:

https://forums.uvdesk.com/post/2083

komal-sh-27 commented 8 months ago

At this moment, we are closing this issue. If you have further any query then you can reply on the same thread.

Thanks and Regards, Uvdesk Team