mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
Merge branch 'master' of github.com:sqlmapproject/sqlmap
This commit is contained in:
commit
11e27f07e0
|
@ -30,6 +30,10 @@ TO = "dev@sqlmap.org"
|
|||
SUBJECT = "Regression test results on %s using revision %s" % (TIME, REVISION)
|
||||
|
||||
def prepare_email(content):
|
||||
global FROM
|
||||
global TO
|
||||
global SUBJECT
|
||||
|
||||
msg = MIMEMultipart()
|
||||
msg["Subject"] = SUBJECT
|
||||
msg["From"] = FROM
|
||||
|
@ -40,6 +44,10 @@ def prepare_email(content):
|
|||
return msg
|
||||
|
||||
def send_email(msg):
|
||||
global SMTP_SERVER
|
||||
global SMTP_PORT
|
||||
global SMTP_TIMEOUT
|
||||
|
||||
try:
|
||||
s = smtplib.SMTP(host=SMTP_SERVER, port=SMTP_PORT, timeout=SMTP_TIMEOUT)
|
||||
#s.set_debuglevel(1)
|
||||
|
@ -50,6 +58,8 @@ def send_email(msg):
|
|||
print "Failure to send email: %s" % str(e)
|
||||
|
||||
def main():
|
||||
global SUBJECT
|
||||
|
||||
content = ""
|
||||
test_counts = []
|
||||
attachments = {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user