Smart.Framework Logo

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.


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: 2023-10-19 23:15:46 +0000


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