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

Potential candidate to replace Zend\Mail\Message/Zend\Mime\Message #20

Open
groovenectar opened this issue Jan 29, 2022 · 1 comment
Open

Comments

@groovenectar
Copy link

https://github.com/jchook/mime-php

So potentially here: https://github.com/TheFox/smtpd/blob/master/src/Client.php#L473

Instead of $mail = \Zend\Mail\Message::fromString($this->mail); or $mail = \Zend\Mime\Message::createFromMessage($this->mail);, it could be:

$mail = (new \Virtu\Mime\Textual\Parser)->parseMessageString($this->mail);

This would then expose each message part after parsing

@groovenectar
Copy link
Author

I gave this a try and it works -- also decodes base64-encoded message parts :)

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

No branches or pull requests

1 participant