- 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 = [SENDMAILTO]
- SUBJECT = "The build is still broken as of 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. |
9 years ago
|
|