Fixed email notification failing to send due to formatting issues