Email not delivered automatically

I guess you are sending an email with attachment of the document.
It is the problem with the wkhtmltopdf and not with the email client.

This might help to root cause. https://discuss.frappe.io/t/frappe-docker-2023-production-setup-password-reset-email-link-added-with-port-8000/101844/11