<div dir="ltr"><div>I've run into an issue with MailHost returning a "No message recipients designated" exception on an older Zope server that I've never seen before and I can't quite figure out. <br></div><div><br></div><div>I created a simple SendMail template that looks similar to: </div><div><br></div><div><div><font face="courier new, monospace"><dtml-sendmail mailhost="testmail"></font></div><div><font face="courier new, monospace">To: <a href="mailto:test@test.org">test@test.org</a></font></div><div><font face="courier new, monospace">From: Test Email <<a href="mailto:test2@test.org">test2@test.org</a>></font></div><div><font face="courier new, monospace">Subject: Testing</font></div><div><font face="courier new, monospace">Content-Type: text/html; charset=utf-8</font></div><div><font face="courier new, monospace">Content-Transfer-Encoding: 8bit</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"><dtml-in "testSQL.Test_SQL_Method(_.None,_)"></font></div><div><font face="courier new, monospace">  <dtml-var testSQLVar missing="" null=""></font></div><div><font face="courier new, monospace"></dtml-in></font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"></dtml-sendmail></font></div></div><div><br></div><div>The SQL method will pull a simple string from a table with Latin1 encoding, however, always excepts with "No message recipients designated". If I replace it with just a dash or nothing at all it will send the mail just fine. After researching I believed this had to do with the encoding so I've played around with different values (7bit, none, base64, quoted-printable, etc) and they all send except what I have above. </div><div><br></div><div><font face="arial, helvetica, sans-serif">I looked through MailHost.py and was able to change the send function to: </font></div><div><div><font face="courier new, monospace">    def send(self, messageText, mto=None, mfrom=None, subject=None,</font></div><div><font face="courier new, monospace">             encode=None, immediate=True):</font></div><div><font face="courier new, monospace">        messageText, mto, mfrom = messageText, '<a href="mailto:me@test.org">me@test.org</a>','<a href="mailto:test@test.org">test@test.org</a>' #_mungeHeaders( messageText, mto, mfrom, subject)</font></div><div><font face="courier new, monospace">        messageText = _encode(messageText, encode)</font></div><div><font face="courier new, monospace">        self._send(mfrom, mto, messageText, immediate) </font></div></div><div><br></div><div>Note the commenting of _mungeHeaders() - this, in turn, sent just fine. I just can't figure out why, out of the blue with no change in the method of how this was created, that this one fails with seemingly fine data. </div><div><br></div><div>This server is running Zope 2.11.4 (win32) with a MySQL 5.1.40 connected through ZMySQLDA 3.1.1</div><div><div><br></div></div><div>Any help is appreciated. </div><div><br></div><div>Thanks, JD</div></div>