This.mails=[]


#1

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
this.mails=[]

Does anyone know what the syntax is?

thanks,
Morgan.


#2

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

this.mails =[ 
  { 
    host: 'smtp.yourmailserver.com' , 
    port: 587 , 
    username: 'youremail@yourdomain.com' , 
    password: 'encrypted:passwordencrypted' , 
    ssl: false , 
    tls: true , 
    lifeTimespan: createTimeSpan(0,0,1,0) , 
    idleTimespan: createTimeSpan(0,0,0,10) 
  }
];

#3

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