Do you need to store all business emails, for example, for legal or fiscal purposes? These documents must be stored as they are. That is, how they were received … in their original, unconverted formats. 4D v18 R3 answers this need by providing you with a new method allowing you to get emails in their original MIME format.
The POP3_transporter.getMIMEAsBlob( ) method enables you to obtain a BLOB containing the MIME content for a specific message:
// Create a transporter from your server information
$POP3_transporter:=POP3 New transporter($server)
You can save the BLOB in your database or anywhere else. To transform your MIME into a mail object, just use the MAIL Convert from MIME command :
$mail:=MAIL Convert from MIME($blob)
Need more information? Check out the documentation.