Skip to main content

Name

initiate_connection_smtp — initiates an SMTP connection

Synopsis

#include "connection.h"

| int **initiate_connection_smtp** ( | dr, |   | |   | binding, |   | |   | now); |   |

domain_record * <var class="pdparam">dr</var>; int <var class="pdparam">binding</var>; struct timeval * <var class="pdparam">now</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

initiates an SMTP connection

This function is called by the mail queue maintainer to initiate SMTP connections. It calls initiate_connection with the proper callbacks and takes the needed CONN_ACTION_* actions.

Parameters

dr

the domain record on which a connection is to be opened

binding

the binding slot on which a connection is to be opened

now

the current time

Return Values

0 on success, CONN_ERROR(initiate_connection return value) on error

Was this page helpful?