Skip to content

Bounce processing #182

@freescout-helpdesk

Description

@freescout-helpdesk

In our project we need to process bounces, i.e. extract the following info for bounces: status_code, action, diagnostic_code. To get this info original messages's structure is needed, which is returned by imap_fetchstructure.

Is it ok if we add processBounce function to Message.php and create a pull request. The function will be based on:
https://github.com/voku/PHPMailer-BMH/blob/b1f7f4f00c137ffa8bed3909a6ec4b2792e61a37/src/BounceMailHandler/BounceMailHandler.php#L702
Function will return array with bounce data (status_code, action, diagnostic_code) or empty array if no nounce detected.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions