PHP Classes

Cannot get sender's email address

Recommend this page to a friend!

      IMAP  >  All threads  >  Cannot get sender's email address  >  (Un) Subscribe thread alerts  
Subject:Cannot get sender's email address
Summary:Cannot get sender's email address
Messages:2
Author:Richard Qi
Date:2006-11-06 22:29:13
Update:2009-12-22 13:38:39
 

  1. Cannot get sender's email address   Reply   Report abuse  
Picture of Richard Qi Richard Qi - 2006-11-06 22:29:13
How to get the sender's emaill address, when its format is Name<username@domain.com>. The data retrieved from server using imap.inc.php only has Name without the email address. Thank you.

  2. Re: Cannot get sender's email address   Reply   Report abuse  
Picture of Anders Jenbo Anders Jenbo - 2009-12-22 13:38:40 - In reply to message 1 from Richard Qi
You should write a bit of regex to retrive the part betwean the < and >