[opencms-dev] URGENT - CmsMailer and opencms.properties query

Trevor Lee Trevor.Lee at 4Loop.com.au
Tue Feb 24 01:47:01 CET 2004


Hi Alex,

I've attached the modified CmsMail.java that uses username/password SMTP
authentication.

Cheers
Trevor

-----Original Message-----
From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]On Behalf Of Alexander Kandzior
Sent: Thursday, February 19, 2004 7:45 PM
To: opencms-dev at opencms.org
Subject: RE: [opencms-dev] URGENT - CmsMailer and opencms.properties
query


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

_______________________________________________
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CmsMail.java
Type: java/*
Size: 27254 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040224/8e2c8067/attachment.bin>


More information about the opencms-dev mailing list