Re: [PHP] Parsing the From field

2011-11-20 Thread Geoff Shang
On Sat, 19 Nov 2011, Ron Piggott wrote: Also the formatting of the from field changes in various e-mail programs: From: Ron Piggott From: "Ron Piggott" From: ron.pigg...@actsministries.org From: I've also seen: Piggott, Ron And that's before you get to people who only use their first na

Re: [PHP] Parsing the From field

2011-11-19 Thread Al
On 11/19/2011 11:29 AM, Alain Williams wrote: On Sat, Nov 19, 2011 at 11:23:59AM -0500, Ron Piggott wrote: I am unsure of how to parse first name, last name and e-mail address from the 'From:' field of an e-mail. What I am struggling with is if the name has more than two words - Such as the

Re: [PHP] Parsing the From field

2011-11-19 Thread Ron Piggott
AM To: Ron Piggott Cc: php-general@lists.php.net Subject: Re: [PHP] Parsing the From field On Sat, Nov 19, 2011 at 11:23:59AM -0500, Ron Piggott wrote: I am unsure of how to parse first name, last name and e-mail address from the 'From:' field of an e-mail. What I am struggling with is

Re: [PHP] Parsing the From field

2011-11-19 Thread Alain Williams
On Sat, Nov 19, 2011 at 11:23:59AM -0500, Ron Piggott wrote: > > I am unsure of how to parse first name, last name and e-mail address from the > 'From:' field of an e-mail. > > What I am struggling with is if the name has more than two words > - Such as the last name being multiple words > - A

[PHP] Parsing the From field

2011-11-19 Thread Ron Piggott
I am unsure of how to parse first name, last name and e-mail address from the 'From:' field of an e-mail. What I am struggling with is if the name has more than two words - Such as the last name being multiple words - A name a business or department is given instead of a personal name - If the