PHP Classes

parse address with like {{{ foo bar }}}<[email protected]>

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  parse address with like {{{ foo bar...  >  (Un) Subscribe thread alerts  
Subject:parse address with like {{{ foo bar...
Summary:parse address with like {{{ foo bar }}}<[email protected]>
Messages:3
Author:Sergey
Date:2014-08-19 14:15:46
 

  1. parse address with like {{{ foo bar...   Reply   Report abuse  
Picture of Sergey Sergey - 2014-08-19 14:15:47
Hi, I have used "mime parser" class which you developed and seems I found some issue. When I try to parse mail with sender (from) address like

{{{ A Miraculous Invention - Slash Your Electric Bill by 100% }}} <[email protected]>
I get wrong result:

Parsed address: {{{ A Miraculous Invention - Slash Your Electric Bill by 100% }}}
array(2) {
[0]=>
array(1) {
["name"]=>
string(60) "{{{ A Miraculous Invention - Slash Your Electric Bill by 100"
}
[1]=>
array(2) {
["address"]=>
string(22) "[email protected]"
["name"]=>
string(3) "}}}"
}
}

Have you any ideas to help me? Thank's

  2. Re: parse address with like {{{ foo bar...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-08-19 20:04:44 - In reply to message 1 from Sergey
I tried it here and it returns correct results. What PHP version are you using?

array(1) {
[0]=>
array(2) {
["address"]=>
string(16) "[email protected]"
["name"]=>
string(15) "{{{ foo bar }}}"
}
}

  3. Re: parse address with like {{{ foo bar...   Reply   Report abuse  
Picture of Sergey Sergey - 2014-08-20 16:40:57 - In reply to message 2 from Manuel Lemos
Sorry, "foo bar" realy working=) Could you check it with
{{{ A Miraculous Invention - Slash Your Electric Bill by 100% }}} <[email protected]>

PHP 5.5.9

Thank's