Back to index

d-push  2.0
Mail Namespace Reference

RFC 822 Email address list validation Utility. More...


Detailed Description

RFC 822 Email address list validation Utility.

What is it?

This class will take an address string, and parse it into it's consituent parts, be that either addresses, groups, or combinations. Nested groups are not supported. The structure it returns is pretty straight forward, and is similar to that provided by the imap_rfc822_parse_adrlist(). Use print_r() to view the structure.

How do I use it?

$address_string = 'My Group: "Richard" <richard> (A comment), ted@e.nosp@m.xamp.nosp@m.le.co.nosp@m.m (Ted Bloggs), Barney;'; $structure = Mail_RFC822::parseAddressList($address_string, 'example.com', true) print_r($structure);

Author:
Richard Heyes richa.nosp@m.rd@p.nosp@m.hpgur.nosp@m.u.or.nosp@m.g
Chuck Hagenbuch chuck.nosp@m.@hor.nosp@m.de.or.nosp@m.g
Version:
Revision:
1.23

BSD