I am trying to read an email body that has a link in it. I need the link address for my website users.
I can "see" the link but not the address.
lots of info on putting a link in but not much on retreval.
any help would be greatly appreciated!

Member Avatar for diafol

I would imagine that you need an XML parser. Try DOMDocument or SimpleXML. Or if there's ever only one link - you could probably do a search with regex. You don't give much away do you? Show the source example of a typical email and any code that you have so far. If you have none, read up on DOMDocument / SimpleXML etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.