As for what to write, you have to say that you are interested in the area that professor is working on, that you are interested in working with him, that you have such and such background in terms of education and research experience (if any), and you wonder if any PhD places are still available. I would leave funding issue for the second email if he answers you positively.