acs_mail_lite::configured_p (public)
acs_mail_lite::configured_p
Defined in packages/acs-mail-lite/tcl/acs-mail-lite-procs.tcl
Determine, whether the outgoing SMTPHost is configured and reachable.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # # We have currently no good way to check, whether the outgoing # email server is fully configured and accepts our # emails. Here we check only, whether we can connect to the # configured server. # set success 0 set params [get_delivery_parameters] try { lassign [ns_sockopen -timeout 100ms [dict get $params SMTPHost] [dict get $params SMTPPort]] rid wid set readCheck [ns_sockcheck $rid] set writeCheck [ns_sockcheck $wid] set success [expr {$readCheck && $writeCheck}] } on error {errorMsg} { } finally { catch {close $rid} catch {close $wid} } return $successGeneric XQL file: packages/acs-mail-lite/tcl/acs-mail-lite-procs.xql
PostgreSQL XQL file: packages/acs-mail-lite/tcl/acs-mail-lite-procs-postgresql.xql
Oracle XQL file: packages/acs-mail-lite/tcl/acs-mail-lite-procs-oracle.xql