supprt self-build mail server

TO BE TEST on mail server. The STMP methond can work well