Organize smtp logic in the bootstrapper.