[opencms-dev] URGENT - CmsMailer and opencms.properties query
Alexander Kandzior
alex at opencms.org
Thu Feb 19 09:46:01 CET 2004
Trevor,
i'll tell you if you promise that you contribute your enhanced CmsMail class
;-)
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Trevor Lee
> Sent: Thursday, February 19, 2004 6:43 AM
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] URGENT - CmsMailer and opencms.properties query
>
>
> 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
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list