Metrics
0
Watch 447 Star 961 Fork 439

茹憶。 / LepusPython

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
简洁、直观、强大的开源企业级数据库监控系统,MySQL/Oracle/MongoDB/Redis一站式监控,让数据库监控更简单。支持邮件告警、短信告警、AWR性能报告、慢查询分析等专业功能。 spread retract

http://www.oschina.net/p/lepus

Clone or download
test_send_mail.py 458 Bytes
Copy Edit Web IDE Raw Blame History
茹憶。 authored 2017-08-07 15:36 . 代码目录调整,修改readme
#!/usr/bin/env python
# -*- coding: utf8 -*-
from datetime import *
import sys
path='./include'
sys.path.insert(0,path)
import functions as func
send_mail_to_list = func.get_option('send_mail_to_list')
mailto_list=send_mail_to_list.split(';')
result = func.send_mail(mailto_list," I hope you can learn","Beautiful Day")
print result
if result:
send_mail_status = "success"
else:
send_mail_status = "fail"
print "send_mail_status:"+send_mail_status

Comment ( 0 )

You need to Sign in for post a comment

Help Search