Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Mime] RFC 2822 parser to get Email/DraftEmail message from mime message #54483

Closed as not planned
@clement-michelet

Description

@clement-michelet

Description

As of 7.0, Message can be converted to string (mime) but the reverse way cannot be done (if I'm not mistaken).

In order to process emails on mailboxes, as a developer, I would be able to convert mime string to email message.

Example

For instance, both Google and Microsoft allow to fetch emails and get them in RFC 2822 format.

<?php
$parser = new \Symfony\Mime\Parser\Rfc2822MessageParser();
$message = $parser->parse($mime); // Message / Email / DraftEmail

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions