https://github.com/artack/delivery-status-notification
Parser for Delivery Status Notifications (RFC 3464 & RFC 1894)
https://github.com/artack/delivery-status-notification
delivery-status-notification delivery-status-notifications dsn rfc-1894 rfc-3464
Last synced: 6 months ago
JSON representation
Parser for Delivery Status Notifications (RFC 3464 & RFC 1894)
- Host: GitHub
- URL: https://github.com/artack/delivery-status-notification
- Owner: artack
- License: mit
- Created: 2019-03-25T00:40:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-04T07:49:54.000Z (over 6 years ago)
- Last Synced: 2025-03-24T23:51:24.299Z (7 months ago)
- Topics: delivery-status-notification, delivery-status-notifications, dsn, rfc-1894, rfc-3464
- Language: PHP
- Homepage:
- Size: 92.8 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Parser for Delivery Status Notifications (RFC 3464 & RFC 1894)
[](https://packagist.org/packages/artack/delivery-status-notification)
[](LICENSE)
[](https://travis-ci.org/ARTACK/delivery-status-notification)
[](https://scrutinizer-ci.com/g/ARTACK/delivery-status-notification/code-structure)
[](https://scrutinizer-ci.com/g/ARTACK/delivery-status-notification)
[](https://packagist.org/packages/ARTACK/delivery-status-notification)This package provides a parser for delivery status notifications (RFC 3464 & RFC 1894).
## Installation
To install, use composer:
```
composer require artack/delivery-status-notification
```## Usage
The DSN Model can be parsed by using the static method `from()`.``` php
use Artack\Dsn\DeliveryStatusNotification;$dsn = DeliveryStatusNotification::from($dsnMimePartContent);
```## Testing
``` bash
$ ./vendor/bin/phpunit
```## Credits
- [mailXpert GmbH](https://github.com/ARTACK)
- [ARTACK WebLab GmbH](https://github.com/artack)
- [All Contributors](https://github.com/ARTACK/delivery-status-notification/contributors)## License
The MIT License (MIT). Please see [License File](https://github.com/ARTACK/delivery-status-notification/blob/master/LICENSE) for more information.
## Resources
- [RFC 3464](https://tools.ietf.org/html/rfc3464)
- [RFC 1894](https://tools.ietf.org/html/rfc1894)
- [RFC 822](https://tools.ietf.org/html/rfc822)
- [IANA DSN Types](https://www.iana.org/assignments/dsn-types/dsn-types.xhtml)
- [IANA SMTP Enhanced Status Code](https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml)