I have read a topic on this forum about geting the content of an email in text mode.
Code: Select all
$stream = $message->build();
echo $stream->readFull();I have two tasks, and blissfully they have similar logic to solve.
- First I need to contorll the maximum size (in bytes) of the letter together with inline images and attachments. I think the size check is clear, I make the $stream, write to file and check the size of it.
- Second I have to store the email in text file, but in thet way, the storing happens before making the recipient list, and after it is stored. Later I want to make $message again (form the content of the text file), add the recipients, decorate etc. and send.
Is there any way to do this?