I want to apologize for some mistake in official mail and want to make them sure I will not do that again.
"I will take care of this next time" .
"I will take care of this onwards".
You could simply say:
"I apologize for the error and it will not happen again."
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?