mail config excepts optional success handler