First attempt at email integration

Possible failure here.