Changeset 5524 for main/waeup.sirp/trunk/src/waeup/sirp/browser
- Timestamp:
- 23 Sep 2010, 09:37:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r5498 r5524 341 341 self.flash('Error: All fields must be filled!') 342 342 return 343 if not re.match("^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+.[a-zA-Z]{2,6}$", email): 343 if not re.match("^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+.[a-zA-Z]{2,6}$", 344 email): 344 345 self.flash('Error: %s is not a valid email address!' % email) 345 346 return … … 357 358 msg['Subject'] = 'WAeUP Contact' 358 359 #server = smtplib.SMTP('smtp_server') 359 #server.login('user_name','secret_password') 360 # Also connection details (username, passwords, host, port, 361 # etc.) should be settable somewhere. 362 # server.login('user_name','secret_password') 360 363 server = smtplib.SMTP('localhost') 361 364 server.sendmail(email,'contact@waeup.org',msg.as_string())
Note: See TracChangeset for help on using the changeset viewer.