RPC system for automated email sending