Skip to main content

generate_soft_bounce_message_preamble

Last updated March 2020

Name

generate_soft_bounce_message_preamble

Synopsis

#include "hooks/core/generate_soft_bounce_message_preamble.h"

| int **generate_soft_bounce_message_preamble** ( | closure, |   | |   | message, |   | |   | body); |   |

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

| int **has_core_generate_soft_bounce_message_preamble_hook** ( | ); |   |

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

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

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

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

| int **call_core_generate_soft_bounce_message_preamble_hook** ( | message, |   | |   | body); |   |

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

Description

When Momentum generates a delivery status notification (DSN) message, it creates the email_message, constructs the headers, a preamble and then attaches some portion of the reference email to the end (based on the configuration).

This hook gives you the constructed header as a string * and allows you to modify the headers directly and/or append your own preamble that will be used as the DSN body.

Was this page helpful?