object

smtp_process_transport

Process-backed TLS transport support for the SMTP client.

Availability:
logtalk_load(smtp(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-09-13
Compilation flags:
static, context_switching_calls
Remarks:
(none)
Inherited public predicates:
(none)

Public predicates

open/8

Opens an implicit TLS or STARTTLS SMTP connection using OpenSSL.

Compilation flags:
static
Template:
open(Host,Port,Security,Helo,Executable,ServerName,Options,Connection)
Mode and number of proofs:
open(+atom,+integer,+atom,+atom,+atom,+atom,+list,--compound) - one_or_error

streams/3

Returns the input and output streams for an open process connection.

Compilation flags:
static
Template:
streams(Connection,Input,Output)
Mode and number of proofs:
streams(+compound,--stream,--stream) - one_or_error

failure_details/3

Returns the process exit status and standard error output after an OpenSSL connection failure.

Compilation flags:
static
Template:
failure_details(Connection,Status,Diagnostic)
Mode and number of proofs:
failure_details(+compound,--term,--atom) - one

close/1

Closes the streams and terminates the OpenSSL process.

Compilation flags:
static
Template:
close(Connection)
Mode and number of proofs:
close(+compound) - one

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)