added smtp initialiser