Removed mandrill dependency, added generalized emailing using envelopes