Improved email function so it shows PDF preview before sending

The latest version (25.10.5) is improving email function so it shows PDF preview what is actually going to be sent to recipient.

10 Likes

That’s great,

Can we also have pre-rendered email templates?

3 Likes

Test both on Desktop & Windows Server Edition v25.10.5.2881. It shows POST 500 (Internal Server Error) and Response Error Code 500 from / send-email? in the browser console after click the Send button.

Logs from Desktop Edition:

htmx.js?25.10.5.2881:1  POST http://127.0.0.1:55667/send-email?CowCL3NhbGVzLXF1b3RlLXZpZXc_b2dZZ1VGUWdVMGxPUkVsSFNVeEpWa1VnVkVWTFRrOU1UMGRKSUV0U1JVRlVTVWFxQm5ZdmMyRnNaWE10Y1hWdmRHVnpQMjluV1dkVlJsRm5WVEJzVDFKRmJFaFRWWGhLVm10VloxWkZWa3hVYXpsTlZEQmtTa2xGZEZOU1ZVWlZVMVZoTkVSQlJFRkVRVU0wUkZGRVFVUlJSRzlFVVVSUlJIZERiMFZCUXpSRlFVUkpSVUZFZDBWQlJFRkZVVVJKUlZGRFVVVm5SSGN0ZDBWQndnd1NDVzk0RVZhdVdLSktFWjcxcWtHUWxIQlZ5QXdDMEF5RUFkZ01BQRISCW94EVauWKJKEZ71qkGQlHBVogYgUFQgU0lORElHSUxJVkUgVEVLTk9MT0dJIEtSRUFUSUY 500 (Internal Server Error)
he @ htmx.js?25.10.5.2881:1
(anonymous) @ htmx.js?25.10.5.2881:1
i @ htmx.js?25.10.5.2881:1
htmx.js?25.10.5.2881:1 Response Status Error Code 500 from /send-email?CowCL3NhbGVzLXF1b3RlLXZpZXc_b2dZZ1VGUWdVMGxPUkVsSFNVeEpWa1VnVkVWTFRrOU1UMGRKSUV0U1JVRlVTVWFxQm5ZdmMyRnNaWE10Y1hWdmRHVnpQMjluV1dkVlJsRm5WVEJzVDFKRmJFaFRWWGhLVm10VloxWkZWa3hVYXpsTlZEQmtTa2xGZEZOU1ZVWlZVMVZoTkVSQlJFRkVRVU0wUkZGRVFVUlJSRzlFVVVSUlJIZERiMFZCUXpSRlFVUkpSVUZFZDBWQlJFRkZVVVJKUlZGRFVVVm5SSGN0ZDBWQndnd1NDVzk0RVZhdVdLSktFWjcxcWtHUWxIQlZ5QXdDMEF5RUFkZ01BQRISCW94EVauWKJKEZ71qkGQlHBVogYgUFQgU0lORElHSUxJVkUgVEVLTk9MT0dJIEtSRUFUSUY
w @ htmx.js?25.10.5.2881:1
de @ htmx.js?25.10.5.2881:1
fe @ htmx.js?25.10.5.2881:1
Mn @ htmx.js?25.10.5.2881:1
p.onload @ htmx.js?25.10.5.2881:1
XMLHttpRequest.send
he @ htmx.js?25.10.5.2881:1
(anonymous) @ htmx.js?25.10.5.2881:1
i @ htmx.js?25.10.5.2881:1

Logs from Server Edition:

15:26:35.160 htmx.js?25.10.5.2881:1  POST http://localhost:8090/send-email?CowCL3NhbGVzLXF1b3RlLXZpZXc_b2dZZ1VGUWdVMGxPUkVsSFNVeEpWa1VnVkVWTFRrOU1UMGRKSUV0U1JVRlVTVWFxQm5ZdmMyRnNaWE10Y1hWdmRHVnpQMjluV1dkVlJsRm5WVEJzVDFKRmJFaFRWWGhLVm10VloxWkZWa3hVYXpsTlZEQmtTa2xGZEZOU1ZVWlZVMVZoTkVSQlJFRkVRVU0wUkZGRVFVUlJSRzlFVVVSUlJIZERiMFZCUXpSRlFVUkpSVUZFZDBWQlJFRkZVVVJKUlZGRFVVVm5SSGN0ZDBWQndnd1NDVzk0RVZhdVdLSktFWjcxcWtHUWxIQlZ5QXdDMEF5RUFkZ01BQRISCW94EVauWKJKEZ71qkGQlHBVogYgUFQgU0lORElHSUxJVkUgVEVLTk9MT0dJIEtSRUFUSUY 500 (Internal Server Error)
he @ htmx.js?25.10.5.2881:1
(anonymous) @ htmx.js?25.10.5.2881:1
i @ htmx.js?25.10.5.2881:1
15:26:35.163 htmx.js?25.10.5.2881:1 Response Status Error Code 500 from /send-email?CowCL3NhbGVzLXF1b3RlLXZpZXc_b2dZZ1VGUWdVMGxPUkVsSFNVeEpWa1VnVkVWTFRrOU1UMGRKSUV0U1JVRlVTVWFxQm5ZdmMyRnNaWE10Y1hWdmRHVnpQMjluV1dkVlJsRm5WVEJzVDFKRmJFaFRWWGhLVm10VloxWkZWa3hVYXpsTlZEQmtTa2xGZEZOU1ZVWlZVMVZoTkVSQlJFRkVRVU0wUkZGRVFVUlJSRzlFVVVSUlJIZERiMFZCUXpSRlFVUkpSVUZFZDBWQlJFRkZVVVJKUlZGRFVVVm5SSGN0ZDBWQndnd1NDVzk0RVZhdVdLSktFWjcxcWtHUWxIQlZ5QXdDMEF5RUFkZ01BQRISCW94EVauWKJKEZ71qkGQlHBVogYgUFQgU0lORElHSUxJVkUgVEVLTk9MT0dJIEtSRUFUSUY
w @ htmx.js?25.10.5.2881:1
de @ htmx.js?25.10.5.2881:1
fe @ htmx.js?25.10.5.2881:1
Mn @ htmx.js?25.10.5.2881:1
p.onload @ htmx.js?25.10.5.2881:1
XMLHttpRequest.send
he @ htmx.js?25.10.5.2881:1
(anonymous) @ htmx.js?25.10.5.2881:1
i @ htmx.js?25.10.5.2881:1

I have confirmed that the email settings have been successfully configured using SMTP.:

I also tested it with the default theme and without attachments. However, the email delivery still failed.

Updated post:
When I checked the network from the developer tools, it seems the issue is due to the SSL certificate. Is this because the Desktop Edition by default installation lacks SSL, and for the Server Edition installed on my Windows Server, I am also not using SSL? Does this mean that to use this email sending feature, the manager must be accessible with a domain that has SSL? Please help me for the explanation about it @lubos. Btw, this preview feature when sending email is great.

What do you mean by pre-rendered email templates?

In the latest version (25.10.6), the software should give more details on specifics of error.

Hi, we have this version of our cloud edition of Manager ‘25.10.6.2884’ and we are unable to email invoices from Manager and we are also unable to convert invoices to pdf files to email manually. It just keeps timing out when trying to email or convert to pdf. We have tried restarting the cloud server but this hasn’t helped. We use HTTP email settings. Please help!

1 Like

I have the same issue and cannot make pdf’s so I can send the invoices manually

1 Like

I tried again after updated to Desktop Edition v25.10.6.2885, now it shows error in UI like this:

An error occurred while attempting to establish an SSL or TLS connection.
The server's SSL certificate could not be validated for the following reasons:
• The server certificate has the following errors:
• The revocation function was unable to check revocation for the certificate.

The same error from console log appears too:

htmx.js?25.10.6.2885:1  POST http://127.0.0.1:55667/send-email?CowCL3NhbGVzLXF1b3RlLXZpZXc_b2dZZ1VGUWdVMGxPUkVsSFNVeEpWa1VnVkVWTFRrOU1UMGRKSUV0U1JVRlVTVWFxQm5ZdmMyRnNaWE10Y1hWdmRHVnpQMjluV1dkVlJsRm5WVEJzVDFKRmJFaFRWWGhLVm10VloxWkZWa3hVYXpsTlZEQmtTa2xGZEZOU1ZVWlZVMVZoTkVSQlJFRkVRVU0wUkZGRVFVUlJSRzlFVVVSUlJIZERiMFZCUXpSRlFVUkpSVUZFZDBWQlJFRkZVVVJKUlZGRFVVVm5SSGN0ZDBWQndnd1NDUVVxbzBSeWUzRktFWnA4bFMzQS1waWV5QXdBMEF5RUFkZ01BQRISCQUqo0Rye3FKEZp8lS3A-pieogYgUFQgU0lORElHSUxJVkUgVEVLTk9MT0dJIEtSRUFUSUY 500 (Internal Server Error)
he @ htmx.js?25.10.6.2885:1
(anonymous) @ htmx.js?25.10.6.2885:1
i @ htmx.js?25.10.6.2885:1
htmx.js?25.10.6.2885:1 Response Status Error Code 500 from /send-email?CowCL3NhbGVzLXF1b3RlLXZpZXc_b2dZZ1VGUWdVMGxPUkVsSFNVeEpWa1VnVkVWTFRrOU1UMGRKSUV0U1JVRlVTVWFxQm5ZdmMyRnNaWE10Y1hWdmRHVnpQMjluV1dkVlJsRm5WVEJzVDFKRmJFaFRWWGhLVm10VloxWkZWa3hVYXpsTlZEQmtTa2xGZEZOU1ZVWlZVMVZoTkVSQlJFRkVRVU0wUkZGRVFVUlJSRzlFVVVSUlJIZERiMFZCUXpSRlFVUkpSVUZFZDBWQlJFRkZVVVJKUlZGRFVVVm5SSGN0ZDBWQndnd1NDUVVxbzBSeWUzRktFWnA4bFMzQS1waWV5QXdBMEF5RUFkZ01BQRISCQUqo0Rye3FKEZp8lS3A-pieogYgUFQgU0lORElHSUxJVkUgVEVLTk9MT0dJIEtSRUFUSUY
w @ htmx.js?25.10.6.2885:1
de @ htmx.js?25.10.6.2885:1
fe @ htmx.js?25.10.6.2885:1
Mn @ htmx.js?25.10.6.2885:1
p.onload @ htmx.js?25.10.6.2885:1
XMLHttpRequest.send
he @ htmx.js?25.10.6.2885:1
(anonymous) @ htmx.js?25.10.6.2885:1
i @ htmx.js?25.10.6.2885:1

@MelissaS @catherine_gg should be working in the latest version now.

@anatawiranata if test message is being sent successfully, I’m not quite sure how the real message would fail to send due to SSL since both are using the same transport mechanism.

1 Like

Thanks so much @lubos :grinning_face: it is all working perfectly now!

And the improved email function is great!

I am also puzzled as to why this is happening. From the email settings test, my SMTP configuration was successful. However, when used to send emails with this new feature, it always fails. I tried switching the protocol to HTTP and using the endpoint manager https://email.manager.io you provided in this post. I tested the email sending and it was successful. However, since the sender’s email is not from a domain I own, some clients restrict their email reception with a domain whitelist, and my domain is already registered. It seems rather complicated if I have to ask them to register a new domain, especially since it’s not my company’s domain. However, this indicates there is an issue with my email SMTP server. I have tried using all ports, but it still doesn’t work. For now, I might try to create my own HTTP Server. Hopefully, it will work. In the meantime, I will send the emails manually. Thanks for your effort @Lubos.

@anatawiranata actually reviewing the code, I just realized Do not verify TLS certificate didn’t work properly in some cases. In your case, you want that to be checked.

Also upgrade to the latest version (25.10.6.2901) to see if it makes difference for you because Do not verify TLS certificate should be fixed now.

1 Like

Ok, let me try it.

Yes, it works @lubos. Now I can use my SMTP configuration again.

So here’s the issue. It never occurred to me before to try checking it :grin: because I assumed the email settings test was successful without checking this Do not verify TLS Certificate option. Although, it would be better if the TLS certificate could be verified. But I also just remembered that my company’s email domain indeed has the same issue with several applications, especially those designed for email delivery. It seems to be a problem with the TLS certificate as well. Thank you, @lubos, for pointing this out and reminding me about it.

Regarding another topic I wish to inquire about, is it feasible to incorporate the CC & BCC features in this email sending form in the future? Additionally, is it possible to accommodate multiple recipient email addresses?

Hi Lobos

I love this preview. Thank you for adding it.

I have some clients now that are suddenly not able to send their invoices as PDF eventhough they were able to before.
They get the following error:

I have looked under settings and user rights, but couldnt find where to fix it.

Please can you help?

@lubos Hi there!! I love this new feature, but I’m having a problem with non admin users. It says to them “You are not authorised to access this part of the system. Contact your administrator to elevate your permissions.“ But I can’t find the right permissions. Can anyone help me?

@SVS @rdavidsc

2 Likes

Perfect! I restarted the server and that’s it! Thanks!

Thank you so much.

I’m on the cloud. How do I update? I see im currently on version 25.10.6.2893

@SVS
Login to Manager Cloud and Restart Cloud Server