separated the http and smtp servers.

Also added process to build email objects. Fixed the build of emails so
we’re only changing the to header in the envelope not all the data for
each recipient.