Thank you Tino. I appreciate the help. Duh! Anything inside """ """ is preformatted text. I have tabs inside my preformatted text (without even thinking because it looks more normal because of the indent). I removed them and voila!
def send_mail(fromaddress,tolist,msgsubj,messagebody): import smtplib SERVER = "mymailserver.mydomain.com" message = """\ From: %s To: %s Subject: %s %s """ % (fromaddress, ", ".join(tolist),msgsubj, messagebody) print message server = smtplib.SMTP(SERVER) server.set_debuglevel(1) server.sendmail(fromaddress, tolist, message) server.quit() --Joshua -- http://mail.python.org/mailman/listinfo/python-list