Where O Where Could My VARIABLE Be?

Sean 'Shaleh' Perry shaleh at valinux.com
Fri May 4 11:30:16 EDT 2001


>#!/usr/bin/python
> 
> import cgi, os
> import string
> import smtplib
> 
> print "Content-type: text/html\n\n"
> file = open("outfile.txt", "r")
> line = file.readline()
> file.close()
> print line #### note this is the only additional line
> server = smtplib.SMTP("localhost")
> server.sendmail("beno at thewebsons.com", "beno at thewebsons.com", line)
> server.quit()

right before the server.sendmail() line, do 'server.set_debuglevel(1)'.  That
should give you some more info.




More information about the Python-list mailing list