修改mail返回值
This commit is contained in:
@@ -194,9 +194,9 @@ class Smtp3Library(object):
|
||||
return result'''
|
||||
result = self.smtp.login(self.user, self.password)
|
||||
logger.info(result)
|
||||
return "success"
|
||||
return "mail_success"
|
||||
except:
|
||||
return "fail"
|
||||
return "mail_fail"
|
||||
|
||||
|
||||
def starttls(self, keyfile=None, certfile=None):
|
||||
@@ -269,9 +269,9 @@ class Smtp3Library(object):
|
||||
self.quit()
|
||||
self.close_connection()
|
||||
# return send_result
|
||||
return "success"
|
||||
return "mail_success"
|
||||
except:
|
||||
return "fail"
|
||||
return "mail_fail"
|
||||
|
||||
@keyword('Send Message With All Parameters')
|
||||
def send_message_full(self, host, user, password, subj,
|
||||
|
||||
Reference in New Issue
Block a user