mathsgod/mail-bounce-parser
最新稳定版本:1.0.2
Composer 安装命令:
composer require mathsgod/mail-bounce-parser
包简介
README 文档
README
A PHP library for parsing email bounce messages and extracting delivery status notifications.
Features
- Parse bounce emails in EML format
- Extract delivery status information
- Identify recipient addresses and bounce reasons
- Support for standard DSN (Delivery Status Notification) format
- Built on top of Laminas Mail component
Requirements
- Composer
Installation
Install via Composer:
composer require mathsgod/mail-bounce-parser
Usage
Basic Example
<?php require 'vendor/autoload.php'; // Load the bounce email content $eml = file_get_contents('bounce.eml'); // Parse the bounce message $report = \Mail\BounceParser::parse($eml); // Display the parsed results print_r($report);
Handling Results
The parser returns an array containing the delivery status information, including:
- Recipient email addresses
- Bounce status codes
- Diagnostic messages
- Action taken by the mail server
- Original message details
License
This project is open source and available under the terms specified in the LICENSE file.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
If you encounter any issues or have questions, please open an issue on the GitHub repository.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-26