I dont see any obvious issues with the code.
where it was working before, I would suspect an issue with the smtp server. could be a couple of things, there may be a limit to the number of emails you can send in a given time period and you have exceeded that limit.
I would contact the host and ask them to look into the smtp servers error logs to see why it is not relaying the email messages.