Skip to content

Commit c6fd5d9

Browse files
authored
Merge pull request #1510 from MitrahSoft/Update_mailservers.md
Updated a mailservers.md
2 parents 7cf1139 + 5236f5c commit c6fd5d9

File tree

2 files changed

+31
-12
lines changed

2 files changed

+31
-12
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Specifies how Lucee stores client variables:
22

3-
- memory: the session is only kept in memory
4-
- cookie: the session is stored in the client cookie
5-
- file (default): the session is stored in a local file
6-
- "datasource-name"|"cache-name": when you select a name of an available datasource or cache, the client scope will be stored in there
3+
- **memory:** the session is only kept in memory
4+
- **cookie:** the session is stored in the client cookie
5+
- **file (default):** the session is stored in a local file
6+
- **"datasource-name"|"cache-name":** when you select a name of an available datasource or cache, the client scope will be stored in there

docs/03.reference/02.tags/application/_attributes/mailservers.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,30 @@ Each struct configures one mailserver.
44

55
Struct keys used for smtp configuration are:
66

7-
- host (string): host name of smtp server
8-
- port (numeric): port number of smtp server
9-
- username (string): smtp username
10-
- password (string): smtp userpassword
11-
- ssl (boolean): enable secure connections via SSL.
12-
- tls (boolean): enables Transport Layer Security.
13-
- lifeTimespan (timespan): overall timeout for the connections established to the mail server.
14-
- idleTimespan (timespan): idle timeout for the connections established to the mail server.
7+
- **host (string):** host name of smtp server (you can use `host` or `server` as the key; `smtp` is also supported since Lucee **Lucee 6.2.2.50-SNAPSHOT**)
8+
- **port (numeric):** port number of smtp server
9+
- **username (string):** smtp username
10+
- **password (string):** smtp userpassword
11+
- **ssl (boolean):** enable secure connections via SSL.
12+
- **tls (boolean):** enables Transport Layer Security.
13+
- **lifeTimespan (timespan):** overall timeout for the connections established to the mail server.
14+
- **idleTimespan (timespan):** idle timeout for the connections established to the mail server.
15+
16+
```cfc
17+
// Example configuration in Application.cfc
18+
this.mailservers = [
19+
{
20+
// You can use any of these keys for the host: 'host', 'server', or 'smtp'
21+
host: 'smtp.some-email-domain.com',
22+
// server: 'smtp.some-email-domain.com',
23+
// smtp: 'smtp.some-email-domain.com', // since Lucee 6.2.2.50-SNAPSHOT
24+
port: 587,
25+
username: 'mymailaccount@some-email-domain.com',
26+
password: 'encrypted:8f7eb9...342',
27+
ssl: false,
28+
tls: true,
29+
lifeTimespan: createTimeSpan(0,0,1,0),
30+
idleTimespan: createTimeSpan(0,0,0,10)
31+
}
32+
];
33+
```

0 commit comments

Comments
 (0)