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.18k stars 448 forks source link

How to add mail server #633

Closed senthil-kms closed 1 year ago

senthil-kms commented 1 year ago

how to add our mail in UVDESK and access the mail function

komal-sh-27 commented 1 year ago

@senthil-kms

how to add our mail in UVDESK and access the mail function

Let us know, if you are talking about mail sent from the uvdesk helpdesk. If yes then you will setup of the swift mailer and email settings option for sends mail on the customer mail when a ticket is created on Uvdesk.

Please follow this blog: https://www.uvdesk.com/en/blog/setup-gmail-mailbox-uvdesk-open-source-helpdesk/

senthil-kms commented 1 year ago

@Komal-sharma-2712

I have created swift mailer and the email setting option but the mail is not receiving to customer and to the admin. I got an error message : Warning ! Swiftmailer not working. An error has occurred while sending emails!

Whether there is any other possible to generate mail

senthil-kms commented 1 year ago

@Komal-sharma-2712

Sorry i have closed the issue but i need solution for this any other possible to add the mail

komal-sh-27 commented 1 year ago

@senthil-kms

Open the swiftmailer.php file under config->packages in your project and add these lines.

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

  If the error is not an SSL certificate regarding so share your screenshot of the error.

I hope this solution works for you, if you have still the same problem let us know.

senthil-kms commented 1 year ago

@Komal-sharma-2712

When i change the swiftmailer file i didn't able to load the shop page below error i have displayed Screenshot from 2022-12-21 17-56-58

senthil-kms commented 1 year ago

@Komal-sharma-2712 I swiftmailer which mail id i should add whether the customer mail id or admin mail id

senthil-kms commented 1 year ago

Screenshot from 2022-12-21 18-02-52 This message only displaying

komal-sh-27 commented 1 year ago

@Komal-sharma-2712 I swiftmailer which mail id i should add whether the customer mail id or admin mail id

In swiftmailer email id should be different from the customer and the admin email.

Share your screenshots of the swiftmailer.yaml file.

senthil-kms commented 1 year ago

123

senthil-kms commented 1 year ago

when we are creating the port forwarding in gmail where the confirmation mail will be shown whether the mail will be displayed as a ticket in uvdesk

senthil-kms commented 1 year ago

when we create ticket from customer the ticket is displayed in uvdesk member page but the mail is not receiving for both the customer and the admin

komal-sh-27 commented 1 year ago

Check once again with changes in the code for debug the error.

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

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

and add the below line as in the attached images:

$this->session->getFlashBag()->add('warning', $e->getMessage());

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) and share the screenshots of the error.

senthil-kms commented 1 year ago

Check once again with changes in the code for debug the error.

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

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

and add the below line as in the attached images:

$this->session->getFlashBag()->add('warning', $e->getMessage());

image

Screenshot from 2022-12-21 18-46-06

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) and share the screenshots of the error.

When i changed the file different error is displaying

senthil-kms commented 1 year ago

Now i have displayed this error now what i have to do for the swiftmailer error

komal-sh-27 commented 1 year ago

Screenshot from 2022-12-21 18-46-06

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) and share the screenshots of the error.

When i changed the file different error is displaying

Let us know, this is the same error on the admin dashboard. If the admin creates a ticket from the admin dashboard.

senthil-kms commented 1 year ago

Yes This error is from admin dashboard when admin reply to the ticket this error is displaying

senthil-kms commented 1 year ago

Both customer and admin receives the same error while sending mail

akshaywebkul commented 1 year ago

Hello @senthil-kms,

Could you please verify whether demo123@uvdesk.com is the customer email address in this case and not the email address you used to setup your mailer settings as you've shared in previous replies. It seems that the system is trying to deliver emails from demo123@uvdesk.com through the gmail smtp server, which obviously won't work. I would request you to please share the screenshot of your uvdesk_mailbox.yaml & swiftmailer.yaml configuration files to cross-verify these details. In order to avoid leaking any sensitive information, i would suggest you to either blur the sensitive content in your screenshots, or raise a support request by reaching out to us at https://support.uvdesk.com/en

senthil-kms commented 1 year ago

123 456

this is the config file

senthil-kms commented 1 year ago

Screenshot from 2022-12-21 19-28-28 this is config file

senthil-kms commented 1 year ago

hello if there is any solution to solve this

komal-sh-27 commented 1 year ago

@senthil-kms

Please create a ticket on our support dashboard from here with all screenshots files of the swift mailer, mailbox, and email settings. Also, share the server details of your project so that we will check the error.

senthil-kms commented 1 year ago

@Komal-sharma-2712 I have created the ticket with this details

@senthil-kms

Please create a ticket on our support dashboard from here with all screenshots files of the swift mailer, mailbox, and email settings. Also, share the server details of your project so that we will check the error.

Sanjaybhattwebkul commented 1 year ago

Hi there, Hope your issue will be resolved, if you are still facing the same issue then feel free to reopen this issue.