equal
deleted
inserted
replaced
112 msg = format_mail({'email' : senderemail, |
112 msg = format_mail({'email' : senderemail, |
113 'name' : self._cw.user.dc_title(),}, |
113 'name' : self._cw.user.dc_title(),}, |
114 [recipient], body, subject) |
114 [recipient], body, subject) |
115 if not self._cw.vreg.config.sendmails([(msg, [recipient])]): |
115 if not self._cw.vreg.config.sendmails([(msg, [recipient])]): |
116 msg = self._cw._('could not connect to the SMTP server') |
116 msg = self._cw._('could not connect to the SMTP server') |
117 url = self._cw.build_url(__message=msgid) |
117 url = self._cw.build_url(__message=msg) |
118 raise Redirect(url) |
118 raise Redirect(url) |
119 |
119 |
120 def reset(self): |
120 def reset(self): |
121 """reset form parameters and redirect to a view determinated by given |
121 """reset form parameters and redirect to a view determinated by given |
122 parameters |
122 parameters |