zbateson / mail-mime-parser

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

Invalid resource type: object #204

Closed VarroReve closed 1 year ago

zbateson commented 1 year ago

Hi there,

Please leave a detailed description/recreation steps if this is an issue to reopen this.

VarroReve commented 1 year ago

In laravel 9.1 SwiftMailer has been replaced by SymfonyMailer

Which In my case, I encountered something like:

use ZBateson\MailMimeParser\Message;

// $email is instance of \Symfony\Component\Mime\Email
Message::form($email, true);

Can I use Messages to parse a \Symfony\Component\Mime\Email object?

VarroReve commented 1 year ago

Sorry, I was being stupid, close it now.