adding debug messaging when email fails to help debug why live site is not sending email