From e9ec59ca21bfaf031e89754e20e3078e5c78b72c Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 11 Jun 2002 15:38:17 +0000 Subject: [PATCH] don't use explicit encoding when setting mail headers; use platform default instead. --- src/helma/scripting/fesi/extensions/ESMail.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/helma/scripting/fesi/extensions/ESMail.java b/src/helma/scripting/fesi/extensions/ESMail.java index 8b020dc6..dbc3c4e6 100644 --- a/src/helma/scripting/fesi/extensions/ESMail.java +++ b/src/helma/scripting/fesi/extensions/ESMail.java @@ -91,7 +91,6 @@ public class ESMail extends ESObject implements Serializable { multipart = new MimeMultipart (); } for (int i=0; i 1) - address = new InternetAddress (addstring, MimeUtility.encodeWord (add[1].toString (), "iso-8859-1", null)); + address = new InternetAddress (addstring, MimeUtility.encodeWord (add[1].toString ())); else address = new InternetAddress (addstring); message.setFrom (address); @@ -137,7 +136,7 @@ public class ESMail extends ESObject implements Serializable { throw new AddressException (); Address address = null; if (add.length > 1) - address = new InternetAddress (addstring, MimeUtility.encodeWord (add[1].toString (), "iso-8859-1", null)); + address = new InternetAddress (addstring, MimeUtility.encodeWord (add[1].toString ())); else address = new InternetAddress (addstring); message.addRecipient (Message.RecipientType.TO, address); @@ -149,7 +148,7 @@ public class ESMail extends ESObject implements Serializable { throw new AddressException (); Address address = null; if (add.length > 1) - address = new InternetAddress (addstring, MimeUtility.encodeWord (add[1].toString (), "iso-8859-1", null)); + address = new InternetAddress (addstring, MimeUtility.encodeWord (add[1].toString ())); else address = new InternetAddress (addstring); message.addRecipient (Message.RecipientType.CC, address); @@ -161,7 +160,7 @@ public class ESMail extends ESObject implements Serializable { throw new AddressException (); Address address = null; if (add.length > 1) - address = new InternetAddress (addstring, MimeUtility.encodeWord (add[1].toString (), "iso-8859-1", null)); + address = new InternetAddress (addstring, MimeUtility.encodeWord (add[1].toString ())); else address = new InternetAddress (addstring); message.addRecipient (Message.RecipientType.BCC, address);