Simply replace the unfilled areas such as "[]" and "[date]" with your information.
Dear [name].
It is with deep regret that we accept your resignation as [position] of the [organization].
We can appreciate the demands that this position has placed on you, and appreciate all of the fine contributions you have made as [position].
Best of luck in your future endeavors,
[name]