I left the order ID as a check to see that the order numbers match the emails that we are getting.
It has been working for years and all of a sudden it doesn't.
I changed the port setting in line 83, which weirdly took care of the error message. The success page takes some time to load, but it still doesn't forward emails to me and the customer. On this page checkout_success_canada.php
I suspect it is an SMTP issue. There is no space to enter a password, but our provider says it needs a password (never did before).