fixed a problem in smtp port assignment as reported by stefan rinner (http://grazia.helma.at/pipermail/helma-dev/2007-May/003580.html)

This commit is contained in:
grob 2007-05-04 06:57:59 +00:00
parent 39837792c3
commit 84e03145e5

View file

@ -9,9 +9,9 @@
* Copyright 1998-2007 Helma Software. All Rights Reserved. * Copyright 1998-2007 Helma Software. All Rights Reserved.
* *
* $RCSfile: Mail.js,v $ * $RCSfile: Mail.js,v $
* $Author: hannes $ * $Author: tobi $
* $Revision: 1.6 $ * $Revision: 1.7 $
* $Date: 2007/02/07 14:55:03 $ * $Date: 2007/03/15 09:54:56 $
*/ */
/** /**
@ -554,7 +554,7 @@ helma.Mail = function(host, port) {
if (host || (host = getProperty("smtp"))) { if (host || (host = getProperty("smtp"))) {
props.put("mail.transport.protocol", "smtp"); props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.host", String(host)); props.put("mail.smtp.host", String(host));
props.put("mail.smtp.port", String(port) || "25") props.put("mail.smtp.port", String(port || 25));
props.put("mail.mime.charset", props.put("mail.mime.charset",
System.getProperty("mail.charset", "ISO-8859-15")); System.getProperty("mail.charset", "ISO-8859-15"));
} }