# final class \SmartMailerMimeDecode
{ } ->

Class: SmartMailerMimeDecode - provides an eMail MIME decoder.
This class is for very advanced use.
It just implements the mime decoding to a PHP array by decoding Mime Email Messages.
To easy parse mime messages and display them on-the-fly use the class: Smart Mailer Mime Parser.

- Language: PHP
- Located at: lib/framework/plugins/lib_mail_decode.php
- Package: Plugins:Mailer
- Namespace: \
- Class Name: SmartMailerMimeDecode
- Version: v.20230101
- Depends: classes: SmartUnicode, Smart, SmartFileSysUtils, SmartDetectImages
- Usage: dynamic object: (new Class())->method() - This class provides only DYNAMIC methods

## class Methods

public function __construct ( $encoding = "" ) {} @
Class constructor
public function get_working_charset ( ) {} -> STRING
@return: {STRING} the current decoder CharSet
Get the local decoder encoding (Ex: UTF-8)
public function reset ( ) {} ->
Reset this class after a parsing to avoid re-create a new clean object
public function get_bodies ( $message, $part_id ) {} -> ARRAY
@return: {ARRAY} parsed Bodies and Attachments as [ 'texts' => [ 0..n array of text bodies ], 'attachments' => [ 0..n array of attachments ] ]
Get the parsed Bodies and Attachments
public function separe_email_from_name ( $y_address ) {} -> ARRAY
@return: {ARRAY} [ STRING $name, STRING $email ]
Utility: separe email from name as: 'Name <email@address>'
public function get_header ( $message ) {} -> ARRAY
@return: {ARRAY} [ key => value, ... ]
Get the parsed Header as array

## class Properties

## class Constants

documentation generated on: 2024-12-16 16:53:45 +0000

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