Skip to main content

generate_soft_bounce_message

Last updated March 2020

Name

generate_soft_bounce_message

Synopsis

#include "hooks/core/generate_soft_bounce_message.h"

| email_message* **generate_soft_bounce_message** ( | closure, |   | |   | message); |   |

void * <var class="pdparam">closure</var>; email_message * <var class="pdparam">message</var>;

| int **has_core_generate_soft_bounce_message_hook** ( | ); |   |

| void **register_core_generate_soft_bounce_message_hook_first** ( | hook, |   | |   | closure); |   |

ec_hook_core_generate_soft_bounce_message_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| void **register_core_generate_soft_bounce_message_hook_last** ( | hook, |   | |   | closure); |   |

ec_hook_core_generate_soft_bounce_message_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| email_message* **call_core_generate_soft_bounce_message_hook** ( | message); |   |

email_message * <var class="pdparam">message</var>;

Description

This hook allows the normal mailer delivery notification (a.k.a. bounce) message to be customized. The subject email is passed as parameter message and the registered function may choose to construct and return a valid email_message structure containing the desired attributes and body. If NULL is returned, the next registered function is invoked.

Constructing an entire email_message can be overly complicated if the goal is only a replacement of the preamble of the message. Preamble replacement can be accomplished via the generate_soft_bounce_message_preamble hook.

Was this page helpful?