doc/book/en/devweb/edition/examples.rst
changeset 8032 bcb87336c7d2
parent 6880 4be32427b2b9
child 9423 76c0c96557f8
--- 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')