Description Syntax Example setMailConnectionProperty

Oracle WebCenter Custom WLST Commands 10-101

10.10.3 setMailConnectionProperty

Module: Oracle WebCenter Use with WLST: Online

10.10.3.1 Description

Sets a mail server connection property. Use this command if additional parameters are required to connect to your mail server. This is an extensible way to add any connection property using a key and a value. You are not limited to connection properties specified by createMailConnection and setMailConnection . All known, additional connection properties are listed in Table 10–17, Additional Mail Connection Properties .

10.10.3.2 Syntax

setMailConnectionPropertyappName, name, key, value, [secure], [server], [applicationVersion] Table 10–17 Additional Mail Connection Properties Additional Connection Property Description charset Characterset used on the connection. The default charset is UTF-8. To use a different characterset, such as ISO-8859-1, set the charset connection property. Various IMAP properties Any valid IMAP connection property. For example, mail.imap.connectionpoolsize. A list of valid IMAP properties are available at: http:java.sun.comproductsjavamailjavadocs comsunmailimappackage-summary.html Various SMTP properties Any valid SMTP connection property. For example, mail.smtp.timeout. A list of valid SMTP properties are available at: http:java.sun.comproductsjavamailjavadocs comsunmailsmtppackage-summary.html Note: Do not use the setMailConnectionProperty to set connection properties available through createMailConnection or setMailConnection . Attempting to do so, has no effect. Argument Definition appName Name of the WebCenter application in which to perform this operation. name Name of an existing mail server connection. key Name of the connection property. value Value for the property. Allows any property to be modified on the connection with a key and value. secure Optional. Indicates whether the property value must be stored securely using encryption. Valid options are 1 true and 0 false. When 1, the value is encrypted. The default option is 0. 10-102 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

10.10.3.3 Example

The following example adds a custom mail server connection property called myProperty1 with a default value propertyValue1. wls:weblogicserverConfig setMailConnectionPropertyappName=webcenter, name=myMailServer, key=myProperty1, value=propertyValue1

10.10.4 deleteMailConnectionProperty