Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 11e27f0

Browse files
committed
Merge branch 'master' of github.com:sqlmapproject/sqlmap
2 parents ac77092 + 6cd780e commit 11e27f0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

extra/shutils/regressiontest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
SUBJECT = "Regression test results on %s using revision %s" % (TIME, REVISION)
3131

3232
def prepare_email(content):
33+
global FROM
34+
global TO
35+
global SUBJECT
36+
3337
msg = MIMEMultipart()
3438
msg["Subject"] = SUBJECT
3539
msg["From"] = FROM
@@ -40,6 +44,10 @@ def prepare_email(content):
4044
return msg
4145

4246
def send_email(msg):
47+
global SMTP_SERVER
48+
global SMTP_PORT
49+
global SMTP_TIMEOUT
50+
4351
try:
4452
s = smtplib.SMTP(host=SMTP_SERVER, port=SMTP_PORT, timeout=SMTP_TIMEOUT)
4553
#s.set_debuglevel(1)
@@ -50,6 +58,8 @@ def send_email(msg):
5058
print "Failure to send email: %s" % str(e)
5159

5260
def main():
61+
global SUBJECT
62+
5363
content = ""
5464
test_counts = []
5565
attachments = {}

0 commit comments

Comments
 (0)