smtp_client_args_add

March 26, 2020 Contributors

Name

smtp_client_args_add — Add an argument to an smtp_client_args structure

Synopsis

#include "smtp.h"

| int **smtp_client_args_add** ( | args, |   |
|   | extension, |   |
|   | value); |   |

smtp_client_args * <var class="pdparam">args</var>;
const char * <var class="pdparam">extension</var>;
const char * <var class="pdparam">value</var>;

Description

Add an argument to an smtp_client_args structure. For a description of this struct see “smtp_client_args”.

Parameters

args

The args structure to add the argument to.

extension

The name of the extension.

value

The value to use for the extension, for example ESMTP.

Return Values

On success, 0 is returned. On failure, non-zero is returned, and the caller can either decide to proceed or fail the message.

Threading

It is legal to call this function in any thread.

See Also

SMTP-related Functions and smtp_client_args_delete