<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi everyone,<br><br>I was trying out smtplib and found out that I can email to anyone in my domain but not to an email address not in the domain. From browsing on the web, it seems that this has to do with the configuration of the mail server. The mail server in my organization is MS exchange. Obviously I can email to any email address from my MS outlook.<br><br>What's the easiest way to fix the program? <br><br>Thanks.<br><br>- gan<br><br>import sys, smtplib<br>fr = "xxx@yyy.com"<br>to = "xxx@zzz.com" # will not work<br>line = "testing"<br>subj = "subject line"<br>msg = "From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s" % (fr, to, subj, line)<br>server = smtplib.SMTP("EXCHCLUSTER.ccis.edu")<br>server.set_debuglevel(1)<br>server.sendmail(fr, [to], msg)<br>server.quit()<br><br></div></div><br>

<hr size=1>Be a PS3 game guru.<br>Get your game face on with <a href="http://us.rd.yahoo.com/evt=49936/*http://videogames.yahoo.com">the latest PS3 news and previews at Yahoo! Games.</a></body></html>