I need to write a letter to a friend who has a terminal illness.

What can I say in such a situation?