def __init__(self, id):
     Base.__init__(self, id, smtp_notls=True)
     self.mail_text = ''
     self.n_mails = 0
     self.mto = ''
     self.mfrom = ''
     self.subject = ''
Exemple #2
0
 def secureSend(self, message, mto, mfrom, **kwargs):
     kwargs['debug'] = True
     result = MailBase.secureSend(self,
                                  message=message,
                                  mto=mto,
                                  mfrom=mfrom,
                                  **kwargs)
     self.messages.append(result)
Exemple #3
0
def set_mail_host(portal):

    if DEBUG_MODE or DevelopmentMode:
        from Products.UWOshSecureMailHost.UWOshSecureMailHost import UWOshSecureMailHost
        portal.MailHost = UWOshSecureMailHost()
    else:
        from Products.SecureMailHost.SecureMailHost import SecureMailHost
        portal.MailHost = SecureMailHost()
 def secureSend(self, message, mto, mfrom, **kwargs):
     kwargs['debug'] = True
     result = MailBase.secureSend(self, message=message, mto=mto,
                                  mfrom=mfrom, **kwargs)
     self.messages.append(result)
 def __init__(self, id):
     MailBase.__init__(self, id, smtp_notls=True)
     self.reset()
Exemple #6
0
 def __init__(self, id):
     MailBase.__init__(self, id, smtp_notls=True)
     self.reset()