Issue #2187495 by Les Lim, longwave: Use plugin system for MailInterface classes.