gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/net mailer.py
Date Thu, 04 Mar 2004 17:45:17 GMT
ajack       2004/03/04 09:45:17

  Modified:    python/gump/net mailer.py
  Log:
  1) Turn on debug
  2) Add (uncomment) a test at bottom.
  
  Revision  Changes    Path
  1.8       +14 -12    gump/python/gump/net/mailer.py
  
  Index: mailer.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/net/mailer.py,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- mailer.py	3 Mar 2004 16:24:48 -0000	1.7
  +++ mailer.py	4 Mar 2004 17:45:17 -0000	1.8
  @@ -136,7 +136,7 @@
           # Attach to the SMTP server to send....
           #
           server = smtplib.SMTP(server,port)
  -        # server.set_debuglevel(1)
  +        server.set_debuglevel(1)
           server.sendmail(sane_fromaddr, sane_toaddrs, data)
           server.quit()
           
  @@ -155,18 +155,20 @@
       
   if __name__=='__main__':
   
  -  # init logging
  -  logging.basicConfig()
  +    # init logging
  +    logging.basicConfig()
   
  -  #set verbosity to show all messages of severity >= default.logLevel
  -  log.setLevel(default.logLevel)
  +    #set verbosity to show all messages of severity >= default.logLevel
  +    log.setLevel(default.logLevel)
      
  -  # email=EmailMessage('There','Hi')
  +    email=EmailMessage('Adam Jack <ajack@trysybase.com>',\
  +                    'Adam Jack <ajack@trysybase.com>',\
  +                    'Hi','There')
     
  -  # mail([default.email],default.email,email,default.mailserver)
  +    mail([default.email],default.email,email,default.mailserver)
     
  -  # mail([ 'ajack@trysybase.com' ],default.email,email,default.mailserver)
  +    mail([ 'ajack@trysybase.com' ],default.email,email,default.mailserver)
     
  -  print sanitizeAddress('Adam Jack <ajack@trysybase.com>')
  +    print sanitizeAddress('Adam Jack <ajack@trysybase.com>')
     
     
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message