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