parsing - Get all recipients from email To header in PHP (ZF is a bonus) -


is there way parse recipients of email zend framework?

i'm asking, because email headers can contain this:

to: foo@bar.de, "lastname, firstname" <foo@bar.com> 

so can't split on comma. didn't find way zend framework mail class.

how do this? , there way zend framework?

you can try with

example

print_r(     str_getcsv(         substr('to: foo@bar.de, "lastname, firstname" <foo@bar.com>', 3)     ) ); 

output (demo)

array (     [0] => foo@bar.de     [1] => lastname, firstname <foo@bar.com> ) 

as zend_mail, zendmail::getrecipients() return? or using?


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -