Skip to main content
Participating Frequently
December 7, 2011
Question

cfexchange

  • December 7, 2011
  • 1 reply
  • 593 views

Need some assistance with this problem.   I can connect to our exchange server with no problems and can return data to the screen.   However, the FROMID is messed up.  How would i solve this:

The FROMID is being returned as follows:   "Brown Tom" <tom.brown@gmail.com>

When I output FROMID, I only get "Brown Tom"

All that I need is the email address out of this string.  How could I accomplish this?

Thanks in advance for any assistance.

    This topic has been closed for replies.

    1 reply

    Inspiring
    December 7, 2011
    The FROMID is being returned as follows:   "Brown Tom" <tom.brown@gmail.com>

    When I output FROMID, I only get "Brown Tom"

    When you output it.  I presume this is in a browser.  What does a web browser do with tags (ie: things with < > around them) that it doesn't understand?

    Have you looked at the source being delivered to the browser?

    --

    Adam

    bbagwellAuthor
    Participating Frequently
    December 7, 2011

    yes, the output is to a browser.   #fromid#   

    Right now, only the name "Brown Tom" is being outputted but if you do a #len(trim(fromid))#, the count returned is for the full string (35+ chrs).

    If output right(fromid, 20) I get:  tom.brown@gmail.com>    This tells me that the < > around the email address are causing the problems.  If I could get rid of those and replaced with a space, then I could come up with a way to parse out only the email address.