🔴 January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved uvdesk is not sending emails

    Technical Help
    3
    8
    3156
    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.
    • L
      lukaszw last edited by

      Hi,

      I can not find a solution:
      Here You can find settings in yaml filles resposible for sendingn emails.

      1. uvdesk.yaml
      root@server:/var/www/html/uvdesk/config/packages# cat 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: 'localhost:80/uvdesk/public'
          upload_manager:
              id: Webkul\UVDesk\CoreFrameworkBundle\FileSystem\UploadManagers\Localhost
      
          support_email:
              id: invoices@transport-wietrak.eu
              name: Invoices
              mailer_id: invoices
      
          # Default resources
          default:
              ticket:
                  type: support
                  status: open
                  priority: low
              templates:
                  email: mail.html.twig
      
      
      1. swiftmailer.yaml
      root@server:/var/www/html/uvdesk/config/packages# cat swiftmailer.yaml
      swiftmailer:
          #spool: { type: memory }
          default_mailer: invoices
          mailers:
              invoices:
                  transport: smtp
                  username: invoices@transport-wietrak.eu
                  password: ********
                  host: mail.transport-wietrak.eu
                  port: 587
                  encryption: tls
                  auth_mode: login
                  sender_address: invoices@transport-wietrak.eu
                  delivery_addresses: ['invoices@transport-wietrak.eu']
                  disable_delivery: false
      
      
      
      1. uvdesk_mailbox.yaml
      root@server:/var/www/html/uvdesk/config/packages# cat 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:
              invoices_get:
                  name: Invoices
                  enabled: true
      
                  # [SMTP] Outgoing mail server
                  # Swiftmailer smtp mailer to use for sending emails through on behalf of this mailbox
                  smtp_server:
                      mailer_id: invoices
      
                  # [IMAP] Incoming mail server
                  # IMAP configurations to use for fetching emails from mailbox
                  imap_server:
                      host: '{mail.transport-wietrak.eu:143/imap/tls/novalidate-cert}INBOX'
                      username: invoices@transport-wietrak.eu
                      password: *********
      
              mailbox_4133:
                  name: lukasz_todo
                  enabled: true
      
                  # [SMTP] Outgoing mail server
                  # Swiftmailer smtp mailer to use for sending emails through on behalf of this mailbox
                  smtp_server:
                      mailer_id: invoices
      
                  # [IMAP] Incoming mail server
                  # IMAP configurations to use for fetching emails from mailbox
                  imap_server:
                      host: '{mail.transport-wietrak.eu:143/imap/tls/novalidate-cert}TASK'
                      username: lukasz.wietrak@transport-wietrak.eu
                      password: **********
      
      
      1 Reply Last reply Reply Quote 0
      • Sanjeev
        Sanjeev developer UVdesk Staff last edited by

        @lukaszw

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

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

        and dump() the exception as in attached image.

        3439183f-d1c1-4d00-b7d0-ff2df9275ed1-image.png

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

        1 Reply Last reply Reply Quote 0
        • Sanjeev
          Sanjeev developer UVdesk Staff last edited by

          @lukaszw

          Also you don't need to add delivery address in swift mailer, make it blank otherwise mails will only deliver to this address.

          1 Reply Last reply Reply Quote 0
          • L
            lukaszw last edited by

            Ok, so swiftmailer.yaml looks now :

            root@server:/var/www/html/uvdesk# cat config/packages/swiftmailer.yaml
            swiftmailer:
                default_mailer: invoices
                mailers:
                    invoices:
                        transport: smtp
                        username: invoices@transport-wietrak.eu
                        password: **********
                        host: mail.transport-wietrak.eu
                        port: 587
                        encryption: tls
                        auth_mode: login
                        sender_address: invoices@transport-wietrak.eu
                        delivery_addresses: ['']
                        disable_delivery: false
            
            

            I added also this row in exception, but Symfony Profiler didn't show any other error after that.
            Where this exception message should be ?

            1 Reply Last reply Reply Quote 0
            • L
              lukaszw last edited by

              Exception:

              EmailService.php on line 532:
              "Warning: stream_socket_enable_crypto(): Peer certificate CN=*.linuxpl.com' did not match expected CN=mail.transport-wietrak.eu'"

              1 Reply Last reply Reply Quote 0
              • L
                lukaszw last edited by

                Ok, problem solved, there was a problem with .cert. I change smtp server not by defualt by dns by directly to server and then this one is not making any errors.

                1 Reply Last reply Reply Quote 0
                • Sanjeev
                  Sanjeev developer UVdesk Staff last edited by

                  @lukaszw

                  Glad to know that you issue resolved.

                  1 Reply Last reply Reply Quote 0
                  • peopleinside
                    peopleinside EX helping member last edited by

                    Hi @lukaszw, thank you for your posts in the UVdesk community!
                    I'm happy to read you have resolved.

                    I noticed in more than one post you included full email address and want just reminder this is a public community so that address can be used by bot to send spam. To protect you from spam or scam emails I suggest to not post full email address in public community or web pages.

                    Have a wonderful day!

                    💬 You can also ask help on GitHub Discussions
                    🔴 I am no more active on Uvdesk
                    🔴 Forum support is inactive!

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post