dimanche 25 octobre 2015

Parse email address with Laravel

How could I parse email addresses which are in this format :

"Bob Smith" <bob@company.com>, joe@company.com, "John Doe"<john@company.com>

And get an array like this :

array(
     'bob@company.com'=>'Bob Smith'
     'joe@company.com'=>''
     'john@company.com'=>'John Doe'
);

We have something similar to mailparse_rfc822_parse_addresses() with Laravel?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1MjGbyt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire