Back to Forum Home Page

You must be a registered user (on-premise or cloud) to add any post. To get access, enter your registered Emaill address below and we will email you the access token. Enter your token along with your email address to add the post. You can use your last received token if you have already generated one.

Q. How to get access to FlinkISO Forum?

Ans:In order to able to post, you must be a registered user either with FlinkISO either On-premise or Cloud. You can login to the forum via using your email address, which you or your administrator used duing the registration on the websile. Once you have the email address, use the same email addres and generate a token. We will send you the token on the same email address. Use that token along with the email address to login. You can read posts without login.

Home > Application Installation

Email SMTP setup issue


Good day FlinkISO team, thank you for maintaining this forum to provide support for the software.

I followed all the installation setup instructions at https://www.flinkiso.com/manual/installation.html but the email SMTP is not working. 
My email.php configuration is the following:
class EmailConfig {

       public $default = array(
               "transport" => "Mail",
               "from" => array("[email protected]" => "FlinkISO"),
               //"charset" => "utf-8",
               //"headerCharset" => "utf-8",
       );

       public $smtp = array(

               "transport" => "Smtp",
               "from" => array("[email protected]" => "FlinkISO"),
               "host" => "mail.picengineering.com.my",
               "port" => 465,
               "timeout" => 30,
               "username" => "[email protected]",
               "password" => "******",
               "client" => null,
               "log" => true,
               "tls" => true,
       );

       public $fast = array(
               "from" => "[email protected]",
               "sender" => null,
               "to" => null,
               "cc" => null,
               "bcc" => null,
               "replyTo" => null,
               "readReceipt" => null,
               "returnPath" => null,
               "messageId" => true,
               "subject" => null,
               "message" => null,
               "headers" => null,
               "viewRender" => null,
               "template" => false,
               "layout" => false,
               "viewVars" => null,
               "attachments" => null,
               "emailFormat" => null,
               "transport" => "Smtp",
               "host" => "mail.picengineering.com.my",
               "port" => 465,
               "timeout" => 30,
               "username" => "[email protected]",
               "password" => "*******",
               "client" => null,
               "log" => true,
               "tls" => true,
               //"charset" => "utf-8",
               //"headerCharset" => "utf-8",
       );
}

The error message I received from the “Add SMTP Email” webpage is:
SocketException: SMTP timeout. in /var/www/html/flinkiso/lib/Cake/Network/Email/SmtpTransport.php:362
Stack trace:
#0 /var/www/html/flinkiso/lib/Cake/Network/Email/SmtpTransport.php(149): SmtpTransport->_smtpSend()
#1 /var/www/html/flinkiso/lib/Cake/Network/Email/SmtpTransport.php(86): SmtpTransport->_connect()
#2 /var/www/html/flinkiso/lib/Cake/Network/Email/CakeEmail.php(1183): SmtpTransport->send()
#3 /var/www/html/flinkiso/app/Controller/SettingsController.php(165): CakeEmail->send()
#4 [internal function]: SettingsController->smtp_details()
#5 /var/www/html/flinkiso/lib/Cake/Controller/Controller.php(500): ReflectionMethod->invokeArgs()
#6 /var/www/html/flinkiso/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#7 /var/www/html/flinkiso/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#8 /var/www/html/flinkiso/app/webroot/index.php(115): Dispatcher->dispatch()
#9 {main}  

Somehow, my tmp/logs/error.log file is completely empty despite receiving the error code above.
My email server is set to SSL/TLS on port 465.

3 weeks, 2 days ago | Open | By: Liew Seng Chin

Hello Chin

You need to make sure that there is a communication between FlinkISO server and your SMTP server and firewall is not blocking any port which is required. Timeout error generally means that FlinkISO server is trying to connect your SMTP server but is not getting any response. 

FlinkISO Team

 

3 weeks, 2 days ago | By: FlinkISO Team

Hi FlinkISO Team,

It appears that there are and were communication between the FlinkISO server and my SMTP server and the firewall is not blocking any port which is required but the same error persist. I ran some tests, perhaps these would be some help:

vboxuser@vboxuser:~$ nc -vz mail.picengineering.com.my 465
Connection to mail.picengineering.com.my ([ip address]) 465 port [tcp/submissions] succeeded!
vboxuser@vboxuser:~$ openssl s_client -connect mail.picengineering.com.my:465 -servername mail.picengineering.com.my
CONNECTED(00000003)
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R13
verify return:1
depth=0 CN = mail.picengineering.com.my
verify return:1
---
Certificate chain
0 s:CN = mail.picengineering.com.my
  i:C = US, O = Let's Encrypt, CN = R13
  a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
  v:NotBefore: Apr 20 01:58:22 2026 GMT; NotAfter: Jul 19 01:58:21 2026 GMT
1 s:C = US, O = Let's Encrypt, CN = R13
  i:C = US, O = Internet Security Research Group, CN = ISRG Root X1
  a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
  v:NotBefore: Mar 13 00:00:00 2024 GMT; NotAfter: Mar 12 23:59:59 2027 GMT
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIFhjCCBG6gAwIBAgISBvjQEBRu3aFhOs90CHolIm1rMA0GCSqGSIb3DQEBCwUA
MDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQwwCgYDVQQD
EwNSMTMwHhcNMjYwNDIwMDE1ODIyWhcNMjYwNzE5MDE1ODIxWjAlMSMwIQYDVQQD
ExptYWlsLnBpY2VuZ2luZWVyaW5nLmNvbS5teTCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBAOWD4sDNtb++hIGIAVY1YtTBwRGopIXrr0b8G3XjQ381WHqa
gZf9biJ5I8zaIMKSo5ZV/Wsrl3h1GgE3bU5/H2Sr1VRHhiuus1Cw1X4KG4iLD0Yv
RtKteU0tRpH8teY9pfpnjKzdTflBvSiU235CERNyBilhUlQdzo5uX59eOAHInl3S
XMNSbM0X0pQNoRHdgEo7PLNKHpfGbdeue1v4h+l1lUIeJ2udF4KC1x85gge4spLx
Tx1vQSkzx40IHz7t8ApMCzK3hwPzW7EBxYehrqjSiurIReHIbhI/ilYc4pnFsBTn
7QMnU51fcM2Pdd9ALUHGL+E81FPdn6CPIOqTqZMCAwEAAaOCAqAwggKcMA4GA1Ud
DwEB/wQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATAMBgNVHRMBAf8EAjAAMB0G
A1UdDgQWBBSwGwqCrr5JfFMRV9oJ3KWSvmLj1DAfBgNVHSMEGDAWgBTnq58PLDOg
U9NeT3jIsoQOO9aSMzAzBggrBgEFBQcBAQQnMCUwIwYIKwYBBQUHMAKGF2h0dHA6
Ly9yMTMuaS5sZW5jci5vcmcvMIGb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uer=C = US, O = Let's Encrypt, CN = R13
---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA
Server Temp Key: ECDH, prime256v1, 256 bits
---
SSL handshake has read 3221 bytes and written 454 bytes
Verification: OK
---
New, TLSv1.2, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
   Protocol  : TLSv1.2
   Cipher    : ECDHE-RSA-AES256-GCM-SHA384
   Session-ID: [session id]
   Session-ID-ctx:
   Master-Key: [Master-key]
   PSK identity: None
   PSK identity hint: None
   SRP username: None
   Start Time: 1781317494
   Timeout   : 7200 (sec)
   Verify return code: 0 (ok)
   Extended master secret: no
---
220-nsv58.dnshostmaster.net ESMTP Exim 4.99.4 #2 Sat, 13 Jun 2026 10:24:54 +0800
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
EHLO test
250-nsv58.dnshostmaster.net Hello test [180.75.19.106]
250-SIZE 52428800
250-LIMITS MAILMAX=1000 RCPTMAX=50000
250-8BITMIME
250-PIPELINING
250-PIPECONNECT
250-AUTH PLAIN LOGIN
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
[email address in base64]
334 UGFzc3dvcmQ6
[email password in base64]
235 Authentication succeeded

2 weeks ago | By: Liew Seng Chin

Hello Liew Seng Chin

From the array below:

public $fast = array(
               "from" => "[email protected]",
               "sender" => null,
               "to" => null,
               "cc" => null,
               "bcc" => null,
               "replyTo" => null,
               "readReceipt" => null,
               "returnPath" => null,
               "messageId" => true,
               "subject" => null,
               "message" => null,
               "headers" => null,
               "viewRender" => null,
               "template" => false,
               "layout" => false,
               "viewVars" => null,
               "attachments" => null,
               "emailFormat" => null,
               "transport" => "Smtp",
               "host" => "mail.picengineering.com.my",
               "port" => 465,
               "timeout" => 30,
               "username" => "[email protected]",
               "password" => "*******",
               "client" => null,
               "log" => true,
               "tls" => true,
               //"charset" => "utf-8",
               //"headerCharset" => "utf-8",
       );

 

remove all the keys that are empty, null or you are not using and then try again. 

FlinkISO Team

 

1 week, 3 days ago | By: FlinkISO Team

Dear FlinkISO Team,

Good day, I have done as requested but nothing seemed to have change.

Current configuration of email.php: 

class EmailConfig {

       public $default = array(
               "transport" => "Mail",
               "from" => array("[email protected]" => "FlinkISO"),
               //"charset" => "utf-8",
               //"headerCharset" => "utf-8",
       );

       public $smtp = array(

               "transport" => "Smtp",
               "from" => array("[email protected]" => "FlinkISO"),
               "host" => "mail.picengineering.com.my",
               "port" => 465,
               "timeout" => 30,
               "username" => "[email protected]",
               "password" => "sbx=A_5h{_Lf",
//              "client" => null,
//              "log" => true,
               "tls" => true,
       );

       public $fast = array(
               "from" => "[email protected]",
//              "sender" => null,
//              "to" => null,
//              "cc" => null,
//              "bcc" => null,
//              "replyTo" => null,
//              "readReceipt" => null,
//              "returnPath" => null,
               "messageId" => true,
//              "subject" => null,
//              "message" => null,
//              "headers" => null,
//              "viewRender" => null,
               "template" => false,
               "layout" => false,
//              "viewVars" => null,
//              "attachments" => null,
//              "emailFormat" => null,
               "transport" => "Smtp",
               "host" => "mail.picengineering.com.my",
               "port" => 465,
               "timeout" => 30,
               "username" => "[email protected]",
               "password" => "sbx=A_5h{_Lf",
//              "client" => null,
//              "log" => true,
               "tls" => true,
               //"charset" => "utf-8",
               //"headerCharset" => "utf-8",
       );

 

}
?>

Error message from the website:
SocketException: SMTP timeout. in /var/www/html/flinkiso/lib/Cake/Network/Email/SmtpTransport.php:362
Stack trace:
#0 /var/www/html/flinkiso/lib/Cake/Network/Email/SmtpTransport.php(149): SmtpTransport->_smtpSend()
#1 /var/www/html/flinkiso/lib/Cake/Network/Email/SmtpTransport.php(86): SmtpTransport->_connect()
#2 /var/www/html/flinkiso/lib/Cake/Network/Email/CakeEmail.php(1183): SmtpTransport->send()
#3 /var/www/html/flinkiso/app/Controller/SettingsController.php(165): CakeEmail->send()
#4 [internal function]: SettingsController->smtp_details()
#5 /var/www/html/flinkiso/lib/Cake/Controller/Controller.php(500): ReflectionMethod->invokeArgs()
#6 /var/www/html/flinkiso/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#7 /var/www/html/flinkiso/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#8 /var/www/html/flinkiso/app/webroot/index.php(115): Dispatcher->dispatch()
#9 {main}
 

The tmp/logs/error.log file remains empty.

3 days, 12 hours ago | By: Liew Seng Chin

Hello Liew

Remove all the array keys which are not used, don't just comment. If issue exists, either consult your network administrator or email service provider as FlinkISO only attempts to authenticate with the array values passed, rest of the actions are beyond application's control.

FlinkISO Team

3 days, 10 hours ago | By: FlinkISO Team