Smart.Framework Logo

final class \SmartMailerMimeParser
{ } ::

Class: SmartMailerMimeParser - provides an easy to use eMail MIME Parser.


class Methods

public static function encode_mime_fileurl ( STRING $y_msg_file, STRING $y_ctrl_key ) {} :: STRING
@return: {STRING} the encoded and encrypted url segment
@param: {STRING} $y_msg_file: The relative path to the .eml message file
@param: {STRING} $y_ctrl_key: The encryption private key
Encode and Encrypts a Mime File URL using the crypto algo defined in SMART_FRAMEWORK_SECURITY_CRYPTO or 'hash/sha256' as a fallback
It takes in account if the User is Authenticated or not
This make safe using Mail Message Parts URL links sent by URL for specific and private user access
public static function decode_mime_fileurl ( STRING $y_enc_msg_file, STRING $y_ctrl_key ) {} :: ARRAY
@return: {ARRAY} with the decoded and decrypted url segment containing all required information to validate the email message path
@param: {STRING} $y_enc_msg_file: The encoded/encrypted path to the .eml message file
@param: {STRING} $y_ctrl_key: The decryption private key
Decode and Decrypts a Mime File URL encoded/encrypted with encode_mime_fileurl()
It takes in account if the User is Authenticated or not
public static function display_message ( $y_msg_type, $y_enc_msg_file, $y_ctrl_key, $y_link, $y_target = "", $y_title = "", $y_process_mode = "", $y_show_headers = "" ) {} :: STRING
@return: {STRING} the HTML view of the message linked with all sub-parts in a safe way by making use of encode_mime_fileurl() and decode_mime_fileurl()
Get an Email Message (.eml) as HTML
public static function get_message_data_structure ( $y_msg_type, $y_enc_msg_file, $y_ctrl_key, $y_process_mode, $y_link = "", $y_target = "" ) {} :: ARRAY
@return: {ARRAY} with the full message structure as parts and all sub-parts in a safe way by making use of encode_mime_fileurl() and decode_mime_fileurl()
Get an Email Message (.eml) as ARRAY
This can be used to re-compose a Mime Message for Reply or Forward

class Properties


class Constants



documentation generated on: 2023-10-19 23:15:51 +0000


Smart.Framework © 2009-2023 unix-world.org