You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/03.reference/02.tags/application/_attributes/mailservers.md
+27-8Lines changed: 27 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,30 @@ Each struct configures one mailserver.
4
4
5
5
Struct keys used for smtp configuration are:
6
6
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
0 commit comments