added smtp.from setting, fix test