Simply replace the unfilled areas such as "[]" and "[date]" with your information.
Dear [name],
It was with great pleasure that I read of your promotion to the position of [position] with [name of firm].
I am sure your firm has made a very wise choice and that you will excel in your new role as [position].
Please accept my congratulation on your promotion and my very best wishes for your continuing success.