def _input_smtp(self):
while True:
self.mail_host = raw_input('???SMTP??: ').strip()
mail_port = raw_input('???SMTP?? [25]: ').strip()
self.mail_addr = raw_input('?????: ').strip()
self.mail_pass = raw_input('?????: ').strip()
if mail_port: self.mail_port = int(mail_port)
if self._test_mail():
color_print('\n\t?????????, ??????????\n', 'green')
smtp = raw_input('????? (y/n) [y]: ')
if smtp == 'n':
continue
else:
break
print
评论列表
文章目录