It should be written as Good morning. Only the first letter of good should be captalized. Good is adjective and morning is noun. It is not needed to capitalize as Morning. it is same with Good afternoon. When afternoon is capitalized with first letter it will denote something else like a firm. To whomsoever it may concern is enough, not needed to capilize any other letter than the beginning To.