I’m running Lucee 5.1 and I’d like to setup my mail server in my
Application.cfc using this.mails=[].

I cant find any documentation about it except for a line in this page
saying it exists.

// Declare a mail server

Does anyone know what the syntax is?



You can see example in the Lucee Server Administrator as shown below

this.mails =[ 
    host: '' , 
    port: 587 , 
    username: '' , 
    password: 'encrypted:passwordencrypted' , 
    ssl: false , 
    tls: true , 
    lifeTimespan: createTimeSpan(0,0,1,0) , 
    idleTimespan: createTimeSpan(0,0,0,10) 


SMTP configuration and other options are also discussed in more detail here: