Ver a proveniência

iterate on other footers (smtp)

version-14
Pratik Vyas há 11 anos
ascendente
cometimento
7b2ffcee6f
1 ficheiros alterados com 3 adições e 1 eliminações
  1. +3
    -1
      webnotes/utils/email_lib/smtp.py

+ 3
- 1
webnotes/utils/email_lib/smtp.py Ver ficheiro

@@ -106,8 +106,10 @@ class EMail:
"""append a footer (signature)"""
footer = footer or ""
footer += webnotes.conn.get_value('Control Panel',None,'mail_footer') or ''

other_footers = webnotes.get_hooks().mail_footer or []
for f in webnotes.get_hooks().mail_footer:
for f in other_footers:
footer += f
return footer


Carregando…
Cancelar
Guardar