🔴 January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.
  • Recent
  • Dark Theme
  • Login

UVdesk

  • Dark Theme
  • Login
  • Search
  • Recent

Solved UVDesk not sending emails with SMTP (ssl)

Technical Help
4
14
2.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    afe038 last edited by 8 Mar 2023, 00:51

    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

    1 Reply Last reply Reply Quote 0
    • Komal Sharma
      Komal Sharma UVdesk Staff mod last edited by 9 Mar 2023, 07:39

      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.

      1 Reply Last reply Reply Quote 0
      • A
        afe038 last edited by 9 Mar 2023, 10:25

        Hi @Komal-Sharma

        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 😞

        9b792252-2315-4af4-8aae-cd9639c2c558-image.png

        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.

        1 Reply Last reply Reply Quote 0
        • Komal Sharma
          Komal Sharma UVdesk Staff mod last edited by 9 Mar 2023, 13:29

          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.

          1 Reply Last reply Reply Quote 0
          • A
            afe038 last edited by 9 Mar 2023, 21:30

            Hi @Komal-Sharma,

            I installed the mentioned version, after I complete the installation there the member login page is not getting loaded properlly:

            4397c919-664d-4587-89d5-3e76f49e8547-image.png

            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

            1 Reply Last reply Reply Quote 0
            • Komal Sharma
              Komal Sharma UVdesk Staff mod last edited by 10 Mar 2023, 04:46

              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.

              B 1 Reply Last reply 3 May 2023, 07:27 Reply Quote 0
              • A
                afe038 last edited by 10 Mar 2023, 17:25

                Hi @Komal-Sharma ,

                All good with this version! It seems swiftmailer is not used anymore!

                Thanks a lot for your support!

                Kind regards,
                Agron

                Komal Sharma 1 Reply Last reply 13 Mar 2023, 05:32 Reply Quote 0
                • Topic has been marked as solved  peopleinside peopleinside 10 Mar 2023, 18:41
                • Komal Sharma
                  Komal Sharma UVdesk Staff mod @afe038 last edited by 13 Mar 2023, 05:32

                  @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.com

                  It 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.

                  A 1 Reply Last reply 13 Mar 2023, 09:49 Reply Quote 0
                  • A
                    afe038 @Komal Sharma last edited by 13 Mar 2023, 09:49

                    @Komal-Sharma, done!

                    1 Reply Last reply Reply Quote 0
                    • 2 months later
                    • B
                      Bayu Nugroho @Komal Sharma last edited by 3 May 2023, 07:27

                      @Komal-Sharma

                      Hi Komal, i try install like your suggest. but i found error 69c8ab5b-3e4f-4c95-b104-fcac838988eb-image.png .

                      when i try configure mailboxes

                      Komal Sharma 1 Reply Last reply 3 May 2023, 08:29 Reply Quote 0
                      • Komal Sharma
                        Komal Sharma UVdesk Staff mod @Bayu Nugroho last edited by 3 May 2023, 08:29

                        @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.

                        1 Reply Last reply Reply Quote 0
                        • 4 months later
                        • G
                          gamekolla last edited by 1 Sept 2023, 12:11

                          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
                          1 Reply Last reply Reply Quote 0
                          • Komal Sharma
                            Komal Sharma UVdesk Staff mod last edited by 1 Sept 2023, 12:45

                            @gamekolla

                            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

                            G 1 Reply Last reply 1 Sept 2023, 13:29 Reply Quote 0
                            • G
                              gamekolla @Komal Sharma last edited by 1 Sept 2023, 13:29

                              @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

                              1 Reply Last reply Reply Quote 0
                              8 out of 14
                              • First post
                                8/14
                                Last post