import smtplib
import string, sys
import os
HOST = "mymailhost"
fi = open('build.err', 'r')
BODY = string.join(fi.readlines() )
fi = open('build.out', 'r')
BODY2 = string.join(fi.readlines() )
FROM = "Admin Name <admin-email-address>"
TO = "developer-mail-list"
SUBJECT = "Compile Error in Test Build! Changelist # CHANGELISTNUMBER"
body = string.join((
"From: %s" % FROM,
"To: %s" % TO,
"Subject: %s" % SUBJECT,
"",
BODY,BODY2), "\r\n")
print body
server = smtplib.SMTP(HOST)
server.sendmail(FROM, [TO], body)
server.quit()
# |
Change |
User |
Description |
Committed |
|
#1
|
19006 |
kosinski |
initial put of testCompile project. |
|
|