Ignore:
Timestamp:
20 Dec 2011, 09:33:10 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename sendMail method to be more precise and not confuse with the send_mail function.

File:
1 edited

Legend:

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

    r7402 r7404  
    4141    from_addr = from_addr.encode('ascii')
    4242    rpct_addr = rcpt_addr.encode('ascii')
    43 
    4443    for body_charset in ['US-ASCII', 'ISO-8859-1', 'UTF-8']:
    4544        try:
    4645            body.encode(body_charset)
    4746        except UnicodeError:
    48             print "FAILED: ", body_charset, body
     47            #print "FAILED: ", body_charset, body
    4948            pass
    5049        else:
    5150            break
    52 
    5351    msg = MIMEText(body.encode(body_charset), 'plain', body_charset)
    5452    msg['From'] = formataddr((from_name, from_addr))
     
    7270    grok.implements(ISIRPUtils)
    7371
    74     def sendMail(self,from_name,from_addr,rcpt_name,rcpt_addr,
     72    def sendContactForm(self,from_name,from_addr,rcpt_name,rcpt_addr,
    7573                from_username,usertype,portal,body,subject):
    7674        """Send an email with data provided by forms.
Note: See TracChangeset for help on using the changeset viewer.