I was really thrilled to see this, and it worked fine on the Witango server, but when I compiled it and ran it as J2EE, it threw a Java error.... doesn't like US ASCII

javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.UnsupportedEncodingException: US ASCII

I fooled around with various options, now that I had your clue. Switching to US ASCII, then fixing wrap, then switching back to ISO coding did not work... that is, the J2EE server served it, but now breaks occurred at 132 characters in both Witango server and J2EE (even though wrap was set to 500). I also tried setting wrap to 0 (no wrap?) but that still gave 132 character breaks.

What worked: Set Content Type to HTML, add breaks with html code
Works on both Witango server and J2EE

Thanks so much for your suggestion - it put me on the right track and led very quickly to a solution.


On Aug 25, 2004, at 11:37 AM, John McGowan wrote:

If you change your character set to US ASCII (in the options of the mail action) you can change the "wrap lines at X characters" setting bump it up to a really high number, and then manually break any text that you want to break.

/John

Dale Graham wrote:

This is something new - we're not sure if it is the J2EE implementation, or v 5 itself... but what we are seeing is random breaks in words, as if wrap has died. This is particularly bad if we're automatically emailing out a URL and it gets broken up in the process. This definitely did not use to happen. Actually I don't care about the cause, I am interested in a solution and/or workaround... can anyone make a suggestion?

examples:

You have received this message because you filed an Annual Report in fis
cal year 2003. It's time to begin collection of Annual Reports for fisca
l year 2004.

and (much worse)

To log in to the NIDB, go to the Annual Report page at <http://intramura
l.nih.gov/reports/> and click the Log In button under "Principal Investi
gators, Lead investigators ....".

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to