Forum Moderators: coopster
So I was curious if anyone knows how I can make a function that will grab "info@test.com" out of this line:
Just some text. <a href="mailto:info@test.com">Contact Us.</a>.
The main problem I come up with is sometimes it will grab the "Contact Us" or it screws up when they have additional values in the <a href> tag.
Can anyone help?
If you need more info, let me know!
Thanks!
Wes
$isp = "foo.foo"; //your ISP without www. or http://
$myname = "John Brown"; //change to your full name
mail("abuse@$isp","I am harvesting emails, please ban me","My name is $myname");
But I thought that I could more usefully point you to [php.net...]