[gen] SMTP and LDAP configuration updated. Module appy.gen.mail can now be used independently of a gen-application.
This commit is contained in:
parent
4947e2956c
commit
ecc3f07a09
8 changed files with 155 additions and 107 deletions
|
@ -656,7 +656,9 @@ class ToolWrapper(AbstractWrapper):
|
|||
|
||||
def sendMail(self, to, subject, body, attachments=None):
|
||||
'''Sends a mail. See doc for appy.gen.mail.sendMail.'''
|
||||
sendMail(self, to, subject, body, attachments=attachments)
|
||||
mailConfig = self.o.getProductConfig(True).mail
|
||||
sendMail(mailConfig, to, subject, body, attachments=attachments,
|
||||
log=self.log)
|
||||
|
||||
def formatDate(self, date, format=None, withHour=True, language=None):
|
||||
'''Check doc @ToolMixin::formatDate.'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue