Changeset 1224


Ignore:
Timestamp:
12/13/06 17:06:13 (13 years ago)
Author:
jukka
Message:

Closed #1030, spent 20min. I think this should work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MemberFolder.py

    r1220 r1224  
    603603 
    604604    def sendInvitationMail(self, message, email): 
    605         """ send it (does nothing yet) """ 
    606         print email             
    607         print message 
     605        """ send it """ 
     606        mhost=self.MailHost 
     607        utool=getToolByName(self,'portal_url') 
     608        msg=""" 
     609        From: %s <%s> 
     610        To: %s 
     611        Subject: Invitation to group in %s 
     612 
     613        %s 
     614 
     615        """ % (utool.email_from_name, utool.email_from_address, email, utool.Title(), message) 
     616        try: 
     617            mhost.send(msg) 
     618        except: 
     619            print 'Something is wrong with outgoing email. Sent message was:' 
     620            print msg   
    608621 
    609622    security.declarePublic('addListOfContacts') 
Note: See TracChangeset for help on using the changeset viewer.