--- a/doc/book/en/devweb/edition/examples.rst Thu Oct 27 18:19:00 2011 +0200
+++ b/doc/book/en/devweb/edition/examples.rst Fri Oct 28 10:32:48 2011 +0200
@@ -165,7 +165,7 @@
msg = format_mail({'email' : self._cw.user.get_email(),
'name' : self._cw.user.dc_title()},
recipients, body, subject)
- if not self._cw.vreg.config.sendmails([(msg, recipients]):
+ if not self._cw.vreg.config.sendmails([(msg, recipients)]):
msg = self._cw._('could not connect to the SMTP server')
else:
msg = self._cw._('emails successfully sent')