Index: /main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt	(revision 7399)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt	(revision 7400)
@@ -50,5 +50,5 @@
   >>> browser.getControl(name='form.fullname').value = "Bob Tester"
   >>> browser.getControl(name='form.email_from').value = "xx@yy.zz"
-  >>> browser.getControl(name='form.body').value = "test message with umlaut ä"
+  >>> browser.getControl(name='form.body').value = u'test message with umlaut ä'
   >>> browser.getControl('Send').click()
   >>> print browser.contents
Index: /main/waeup.sirp/trunk/src/waeup/sirp/utils/utils.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/utils/utils.py	(revision 7399)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/utils/utils.py	(revision 7400)
@@ -29,4 +29,10 @@
 
 def send_mail(from_name,from_email,rcpt_name,rcpt_email,subject,body,config):
+    """
+    XXX: While this method is unicode-proof (i.e. it can handle
+         non-plain-ASCII chars in names and messages) other
+         methods inhere are not and will fail silently. Some
+         reorganization of SMPT-related code is needed here.
+    """
 
     header_charset = 'ISO-8859-1'
@@ -44,5 +50,5 @@
             body.encode(body_charset)
         except UnicodeError:
-            print "FAILED: ", body_charset, text
+            print "FAILED: ", body_charset, body
             pass
         else:
@@ -82,17 +88,11 @@
 %s
 """
-        msg = MIMEText(text % (fullname,username,usertype,portal,body))
-        msg['From'] = '%s <%s>' % (fullname,email_from)
-        msg['To'] = email_to
-        msg['Subject'] = subject
-        server = smtplib.SMTP(config.smtp_server)
-        if config.smtp_requires_login:
-            server.login(config.smtp_username,config.smtp_password)
-        try:
-            server.sendmail(email_from,email_to,msg.as_string())
-        except:
-            return False
-        server.quit()
-        return True
+        from_name = fullname
+        from_email = email_from
+        rcpt_name = 'xyz'
+        rcpt_email = email_to
+        body = text % (fullname,username,usertype,portal,body)
+        return send_mail(
+            from_name,from_email,rcpt_name,rcpt_email,subject,body,config)
 
     def fullname(self,firstname,lastname,middlename=None):
@@ -116,9 +116,4 @@
 
         Returns True or False to indicate successful operation.
-
-        XXX: While this method is unicode-proof (i.e. it can handle
-             non-plain-ASCII chars in names and messages) other
-             methods inhere are not and will fail silently. Some
-             reorganization of SMPT-related code is needed here.
         """
         username = applicant.applicant_id
