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);