Implement smarthost-based email notifications.

Change-Id: Ib7dbd70ca96783f87cd44af0d7338aad754e4c72