improved email sending options and config