- Timestamp:
- 12 Aug 2010, 16:57:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/henrik-contactforms/src/waeup/sirp/browser/pages.py
r5426 r5428 142 142 return 143 143 144 @grok.action('Update plugins', validator=NullValidator) 145 def updatePlugins(self, **data): 146 self.context.updatePlugins() 147 self.flash('Plugins were updated. See log file for details.') 148 self.redirect(self.url(self.context)) 149 return 150 144 151 class AdministrationPage(WAeUPPage): 145 152 """ The administration overview page. … … 340 347 msg = MIMEText(text % (fullname,regno,descr)) 341 348 msg['From'] = '%s <%s>' % (fullname,email) 342 msg['To'] = 'henrik@waeup.org' 349 350 # These parameters should be part of the portal configuration. 351 msg['To'] = 'contact@waeup.org' 343 352 msg['Subject'] = 'WAeUP Contact' 344 server = smtplib.SMTP('smtp.scientific-african.org') 345 server.login('henrik@scientific-african.org','kwamekofi') 346 server.sendmail(email,'henrik@waeup.org',msg.as_string()) 353 #server = smtplib.SMTP('smtp_server') 354 #server.login('user_name','secret_password') 355 server = smtplib.SMTP('localhost') 356 server.sendmail(email,'contact@waeup.org',msg.as_string()) 357 347 358 server.quit() 348 359 self.flash('Your message has been sent.')
Note: See TracChangeset for help on using the changeset viewer.