Solved uvdesk is not sending emails
-
Hi,
I can not find a solution:
Here You can find settings in yaml filles resposible for sendingn emails.- 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
- 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
- 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: **********
-
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.
It will show the error you are facing while sending mails (if adding an agent, creating a ticket etc).
-
Also you don't need to add delivery address in swift mailer, make it blank otherwise mails will only deliver to this address.
-
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 ? -
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'" -
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.
-
Glad to know that you issue resolved.
-
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!