I'm trying to include "fieldname = fieldvalues" of all the form controls as part of the email body message.
But why is it that everytime a user enters a newline character in the "Rich Text (XHTML)", the above email code fails with the following error message:
"The message could not be sent to the SMTP server. The transport error code was 0x800ccc6a. The server response was 451 See
http://pobox.com/~djb/docs/smtplf.html."WHen I examine the XML file, the XHTML data looks like:
<my:description>
<div xmlns="http://www.w3.org/1999/xhtml">mag +(*3w _ p</div>
<div xmlns="http://www.w3.org/1999/xhtml">Z</div>
</my:description>
So I tried using regular expression to convert it to a plain HTML like:
description.replace(/\s*xmlns="http:\/\/www.w3.org\/1999\/xhtml"/g, "");
But it still fails.
ANyone know how to solve this?