add smtp port support, fix some indent