New mail function and interfaces
new mail function and interface changes
interfaces and mail function changed