Fix variable initialisation in smtp transport. Bug 2996