Jump to content


Photo

open default email and insert string/url from a variable into the body


  • Please log in to reply
1 reply to this topic

#1 Dville

Dville
  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts

Posted 12 July 2006 - 01:32 AM

Basicly what I'm looking to make is a link that will open up the visitor's default email, and insert a variable into the body of the new email. Allowing the user to fill in the to: field, and subject field. . .and thus allowing them to send the email themselves.

An example can be found at www.digg.com
If you're looking at a list of articles, there's a link for each article that says 'email this'. Except instead of having the site send the email. I'd rather it just open the user's default email client.

I already have the variable $url, which olds the url of the article in question. So all I need help on is opening the default email client, and insterting the variable into the body.


Thanks in advanced to anyone who can help.

#2 Dville

Dville
  • Members
  • PipPipPip
  • Advanced Member
  • 88 posts

Posted 12 July 2006 - 02:30 AM

cancel that, i'll just use the basic html mailto, thanks though




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users