Closed ibnbd closed 1 year ago
Actually, I only need the email address 8293j283@postfix.mydomain.com
, whom the email was for.
Hi @ibnbd --
Yup, there's a general usage guide on the main readme here and on the website if you're looking for general usage (how to read a header), and documentation on specifics of the Received header here: https://mail-mime-parser.org/api/1.3/classes/ZBateson-MailMimeParser-Header-ReceivedHeader.html -- this is the relevant part for you:
The parsed parts of a Received header can be accessed as parameters. To check if a part exists, call ReceivedHeader::hasParameter() with the name of the part, for example: $header->hasParameter('from') or $header->hasParameter('id'). The value of the part can be obtained by calling ReceivedHeader::getValueFor(), for example $header->getValueFor('with');.
Al the best
Hello there @zbateson, I am testing this email and try to get the value
for <8293j283@postfix.mydomain.com>
fromReceived
. Is there any in-script way to get this? Thank you in advance