Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I retrieve single mail #535

Open
adnankhanakib opened this issue Mar 24, 2022 · 1 comment
Open

How can I retrieve single mail #535

adnankhanakib opened this issue Mar 24, 2022 · 1 comment
Labels

Comments

@adnankhanakib
Copy link

How can I get last mail received without looping through all mails?

@terry-lonesski
Copy link

Mailbox class has needed function

/**
     * Get a message by message number.
     *
     * @param int $number Message number
     *
     * @return MessageInterface<PartInterface>
     */
    public function getMessage(int $number): MessageInterface;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants