Im currently having a bit of an issue with the mailto function. On my site I have an online catalogue which lists 25 items per page an I want to have a link at the end of each row enabling the user to email details of the item to someone.
echo "<td><a href=mailto:subject=$Subject&body=$Description>Email this item</a>";
This works fine, however a problem arises as the description for items can be up 300 chars long so the parsed HTML returned will be will have the description twice. This obviously increases the size of each page greatly.
What I wish to have is a php function which is called when the user clicks the link ( being passed the item no ) which then queries the db to get the description and then runs the mailto function. I dont want to use a self made mailling screen.
you could make a little script of your own using the mail() function. So when to user clicks the links he's automaticaly sent to a page whie sends the mail and then returns the user to the orginal page.
Cheers 4 the help, but I really need use the mailto function to pop up a mail message with everything filled in except the To address. The user can then add some text to the message body (' Hi soandso thought you might be interested in this item etc etc') and send it off to whoevers interested. I reckon theres some way in javascript to do it??