zbateson / mail-mime-parser

An email parser written in PHP
https://mail-mime-parser.org/
BSD 2-Clause "Simplified" License
458 stars 58 forks source link

Get Email & getAdresses not found #216

Closed caferyukseloglu closed 1 year ago

caferyukseloglu commented 1 year ago

Hi I think the guide is missing parts. I can't call this parts;

        $to = $message->getHeader(HeaderConsts::TO);
        if (!$to) {
            return Response::missingParameter('Email payload is missing recipients.');
        }

        $addresses = $to->getAdresses();
        $to->getAllAdresses()

Both usage not found. Php 8.2 "zbateson/mail-mime-parser": "dev-master"