96 raise NotSupportedFeature("fax") |
96 raise NotSupportedFeature("fax") |
97 id = self.jobqueue.newFAX(subject, fax,recipients,provider) |
97 id = self.jobqueue.newFAX(subject, fax,recipients,provider) |
98 self.jobs[id]=self.jobqueue[id] |
98 self.jobs[id]=self.jobqueue[id] |
99 return id |
99 return id |
100 |
100 |
101 |
|
102 |
|
103 def startMail(self, subject, body, recipients, frm, provider="default"): |
101 def startMail(self, subject, body, recipients, frm, provider="default"): |
104 if not "mail" in self.features: |
102 if not "mail" in self.features: |
105 raise NotSupportedFeature("mail") |
103 raise NotSupportedFeature("mail") |
|
104 logger.debug("startMail(%s,%s,%s,%s,%s)"%(subject, body, recipients, frm, provider)) |
106 id = self.jobqueue.newMail(subject, body, recipients, frm, provider) |
105 id = self.jobqueue.newMail(subject, body, recipients, frm, provider) |
107 self.jobs[id]=self.jobqueue[id] |
106 self.jobs[id]=self.jobqueue[id] |
108 return id |
107 return id |
109 |
108 |
110 def getProvider(self, name): |
109 def getProvider(self, name): |