[opencms-dev] URGENT - CmsMailer and opencms.properties query
Trevor Lee
Trevor.Lee at 4Loop.com.au
Thu Feb 19 06:43:01 CET 2004
Hi all,
I've modified CmsMail to use SMTP username/password authentication when it
comes to sending emails via the Workflow.
Now i want to add 3 variables (username, password and server) to the
opencms.properties file.
mailServer=xxx
mailUserName=xxx
mailPassword=xxx
When i try to retrieve the properties in CmsMail.java using the following i
get null for all variables:
Properties props = System.getProperties();
String sMailServer = props.getProperty("mailServer");
String sUserName = props.getProperty("mailUserName");
String sPassword = props.getProperty("mailPassword");
1. What java classes do i need to change to ensure these values are read
from the properties file?
2. What do i need to do to retrieve the values from within the CmsMail?
Thanks in advance for your help.
Cheers
Trevor
More information about the opencms-dev
mailing list