Skip to main content

Name

ec_message_get_code — Fetches the code set for the message

Synopsis

#include "ec_message.h"

| const char * **ec_message_get_code** ( | mess); |   |

ec_message * <var class="pdparam">mess</var>;

Description

Returns the SMTP status code set for the message. This status code is updated after a delivery attempt with the SMTP status returned by the remote MX server.

Parameters

mess

A pointer to an ec_message struct. For documentation of this data structure see “ec_message”

Return Values

Returns a read-only pointer to the SMTP status code of the message. This may be NULL, indicating that no code has been set.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?