Ignore:
Timestamp:
13 May 2012, 03:49:37 (13 years ago)
Author:
Henrik Bettermann
Message:

Catch error when sending the contact form but no email address is provided.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r8181 r8436  
    165165        body = translate(text, 'waeup.kofa',
    166166            target_language=self.PORTAL_LANGUAGE)
     167        if not (from_addr and rcpt_addr):
     168            return False
    167169        return send_mail(
    168170            from_name,from_addr,rcpt_name,rcpt_addr,subject,body,config)
Note: See TracChangeset for help on using the changeset viewer.