Is this the proper way to solve Email-problem

Good day

I have made a posting about an error that I am getting when sending a supplier a purchase order
via mail.

My posting …

The thread to the solution is in my thread.

What worries me is that I am basically modifying the installed files. Is there not an update for this
as I plan to deploy more ERPNext instances on droplets soon.

Many thanks