Solved UVDesk not sending emails with SMTP (ssl)
-
Hi to all,
I have a fresh setup and all works OK apart from email delivery. I have followed the guides and also checked other already solved topics within the forum but still didn't manage to solve that. My config files (anonymized the domain, email, smtp, imap data):
$ cat config/packages/uvdesk.yaml parameters: app_locales: en|fr|it # Default Assets assets_default_agent_profile_image_path: 'bundles/uvdeskcoreframework/images/uv-avatar-batman.png' assets_default_customer_profile_image_path: 'bundles/uvdeskcoreframework/images/uv-avatar-ironman.png' assets_default_helpdesk_profile_image_path: 'bundles/uvdeskcoreframework/images/uv-avatar-uvdesk.png' uvdesk_site_path.member_prefix: _member_ uvdesk_site_path.knowledgebase_customer_prefix: _customer_ # File uploads constraints # @TODO: Set these parameters via compilers max_post_size: 8388608 max_file_uploads: 20 upload_max_filesize: 2097152 uvdesk: site_url: 'real_url/uvdesk/public' upload_manager: id: Webkul\UVDesk\CoreFrameworkBundle\FileSystem\UploadManagers\Localhost support_email: id: email@domain.com name: Domain SSC mailer_id: my-support-swift # Default resources default: ticket: type: support status: open priority: low templates: email: mail.html.twig ####### $ cat config/packages/uvdesk_mailbox.yaml uvdesk_mailbox: emails: ~ # Often Reply emails like from gmail contains extra and redundant previous mail data. # This data can be removed by adding delimiter i.e. specific line before each reply. # delimiter: '<-- Please add content above this line -->' # enable_delimiter: true # Configure your mailboxes here mailboxes: support-mailbox: name: Domain Support Mailbox enabled: true deleted: false # [SMTP] Outgoing mail server # Swiftmailer smtp mailer to use for sending emails through on behalf of this mailbox smtp_server: mailer_id: my-support-swift # [IMAP] Incoming mail server # IMAP configurations to use for fetching emails from mailbox imap_server: host: '{imap.domain.com:993/ssl}' username: email@domain.com password: xxxxxxx ###### $ cat config/packages/swiftmailer.yaml swiftmailer: default_mailer: my-support-swift mailers: domain-support-swift: transport: smtp username: email@domain.com password: xxxxxx host: smtp.domain.com port: 465 encryption: ssl auth_mode: login sender_address: email@domain.com delivery_addresses: [''] disable_delivery: false
IMAP parsing of emails to tickets is working OK. I have also tested the SMTP connectivity to my SMTP service via a PHP script and it is OK. I have also tried to use GMAIL, I had the same behaviour (emails received and non sent).
I have added the:
dump($e->getMessage()); die;
But no log is generated. I switched to dev mode and nothing on the Profiler nor on the dev.log.
Any ideas?
BR,
afe038 -
I have a fresh setup and all works OK apart from email delivery.
Let us know, which email service you are using. Also, your mailbox setup is working fine or not.
Share your screenshot of the error while you are sending emails like create ticket or reply on the tickets. -
I'm using Zoho mail service.
Mailbox setup is OK. I'm receiving emails/tickets:
$ php bin/console uvdesk:refresh-mailbox email@domain.com 1. Processing uvdesk mailbox configuration. 2. Opening imap stream... 3. IMAP stream opened. 4. Fetching Email collection since 08 March 2023. 5. Total fetched email -> 1 6. Starting to convert Emails into Tickets -> ============================================= ============================================= Converting email 1 out of 1. Mailbox refreshed successfully !!!
The issues is that I don't have any errors when I'm sending replies
As explained, I also created a sample php script (using SwiftMail) and it's sending emails with the same credentials.
I noticed that there is a configuration on the .env file:
###> symfony/swiftmailer-bundle ### # For Gmail as a transport, use: "gmail://username:password@localhost" # For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" # Delivery is disabled by default via "null://localhost" MAILER_URL=null://localhost ###< symfony/swiftmailer-bundle ###
Do I need to change this as well (althogh not mentioned in some of the HowTos)?
Kind regards,
A. -
I'm using Zoho mail service. Mailbox setup is OK. I'm receiving emails/tickets:
Alright, thanks for the update here.
We suggested to you once you make a try with creted new project with development release uvdesk v-1.2.0 using the below command:$ composer create-project uvdesk/community-skeleton:dev-master;
After setup you can try in this project. Let us know, if you are facing the same error.
-
Hi @Komal-Sharma,
I installed the mentioned version, after I complete the installation there the member login page is not getting loaded properlly:
I noticed that the forntend is trying to load the js & css resources from:
GET https://domain.com/uvdesk/public/bundles/uvdeskcoreframework/js/_dropdown.js net::ERR_ABORTED 404
GET https://domain.com/uvdesk/public/bundles/uvdeskcoreframework/css/_uikit.css net::ERR_ABORTED 404
This was not the case on the previous version!
BR,
A -
I installed the mentioned version, after I complete the installation there the member login page is not getting loaded properlly
Once make a try with run the below command in your project root directory:
$ php bin/console assets:install
After that you will clear cache of project follow the below command:
$ php bin/console c:c
Now check you are facing the same error or not.
-
Hi @Komal-Sharma ,
All good with this version! It seems swiftmailer is not used anymore!
Thanks a lot for your support!
Kind regards,
Agron -
peopleinside
-
@afe038 said in UVDesk not sending emails with SMTP (ssl):
All good with this version! It seems swiftmailer is not used anymore!
We are glad to know that your issue has been resolved now.
If would request you take a spare minute of yours and leave your valuable feedback with us if you liked our product & support.and leave your positive reviews here:
https://reviews.capterra.com/new/158346
https://www.trustpilot.com/review/uvdesk.comIt helps a lot to catch more customers like you and keeps us motivated and helps us to do better for this UVdesk opensource project.
Looking forward to seeking 5-star reviews from your side.
Awaiting your response.
-
@Komal-Sharma, done!
-
Hi Komal, i try install like your suggest. but i found error
.
when i try configure mailboxes
-
@Bayu-Nugroho said in UVDesk not sending emails with SMTP (ssl):
i try install like your suggest. but i found error
Let us know, you have installed the version-1.2.0 uvdesk. After that you have configured mailbox setup.
Also, let us know which email option you are configured. Can you please share a screenshots of the mailbox setup.
-
I have successfully installed Uvdesk with docker. But I can't send any mails and receive any mails so how can I send mail properly.
- I configured smtp with our domain name SMTP and tried GMAIL SMTP but not send any mails
-
I configured smtp with our domain name SMTP and tried GMAIL SMTP but not send any mails
Let us know, any error showing while you have create a ticket or create an agent. If yes then please share a screenshot of the error and also share a screenshot of the configured settings of your swiftmailer, mailbox and email settings option.
Also, you have followed the same blog:
For Gmail setup:
https://www.uvdesk.com/en/blog/setup-gmail-mailbox-uvdesk-open-source-helpdesk/For Imap/Smtp setup:
https://www.uvdesk.com/en/blog/smtp-imap-open-source-helpdesk-uvdesk/Kind Respects
Uvdesk Team -
@Komal-Sharma Yes I created this referring with above smtp article but not sending or receiving any mails. This has not generate any errors. But give me notification Email has sent. But not sending mails