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
8.73k stars 463 forks source link

Swiftmailer not working #616

Closed blckhwk closed 1 year ago

blckhwk commented 1 year ago

Hi,

How do I resolve this issue?

image

komal-sh-27 commented 1 year ago

Let us know which email service you are using Gmail, Yahoo, Outlook, or using IMAP. Once you check again your Swift mailer settings with the correct app password.

=> Also, check this:

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.

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

blckhwk commented 1 year ago

Hi,

Swiftmailer - Gmail free account mailbox - Gmail free account - IMAP

image

I don't think we sent out 500 emails per day

I might use another email account to workaround this issue.

mateusvtoledo commented 1 year ago

@Komal-sharma-2712 For me it doesn't work at all... And worse than in my case the error doesn't even show... it saves everything correctly.

Important: Your forum is out due to expired SSL.

komal-sh-27 commented 1 year ago

@mateusvtoledo

Create a ticket from here with your query and screenshots of the errors. Our team will assist you.

nitinarora39 commented 1 year ago

@Komal-sharma-2712 For me it doesn't work at all... And worse than in my case the error doesn't even show... it saves everything correctly.

Important: Your forum is out due to expired SSL.

same issue

nitinarora39 commented 1 year ago

`` image

komal-sh-27 commented 1 year ago

@nitinarora39

Once you try with the below steps:

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.

Useful link:

https://stackoverflow.com/questions/36454920/swiftmailer-php-how-to-disable-ssl-certificate-validation

 

komal-sh-27 commented 1 year ago

Now, we are closing this issue. We have checked your ticket is created on our support tickets system. If you are facing the same error then reply on the same ticket id: 28955