Newsletters: Filter – wpml_send_body
wpml_send_body filter is used to filter the body/content of an email just before it is sent by the Newsletter plugin to the subscriber. It applies disregarding of the mail type you are using to send the emails.
$body(The body/content of the email)
$phpmailer(The phpMailer object as is)
$history_id(The ID of the saved history email)
Below is an example of using
wpml_send_body to receive the body/content of an email just before it is sent and manipulate it or use it for a different purpose.