You can say goodbye to a client via email in different ways, you could tell them that you have enjoyed the time working for them or that you will miss them but if you want to be more formal, just mention it was a pleasure working with them. In addition, say you hope it goes well for them and you could ask them to remain in contact.