Tell a Friend link to populate fields in email client
Posted: Wed Sep 09, 2009 12:25 pm
Hello.
I am trying to add a feature to my site that seems to be a common practice these days on the web. I would like to have a link that says Tell a Friend if the user wants to email someone about the page they are viewing.
I need help populating the body field in the mail client. I have it working to where the info appears in the body as it should, but I want to know if there is a way to add line breaks and also how I can make sure the link actually appears as a hypertext link versus just text.
here is what i have right now:
Additional problem if you know how to fix it... I need to make a RewriteRule for the link to go to someone else's profile. Rather than something so long as it appears above, I would like people to have the option to just type mysite.com/username ...
Thank you!
I am trying to add a feature to my site that seems to be a common practice these days on the web. I would like to have a link that says Tell a Friend if the user wants to email someone about the page they are viewing.
I need help populating the body field in the mail client. I have it working to where the info appears in the body as it should, but I want to know if there is a way to add line breaks and also how I can make sure the link actually appears as a hypertext link versus just text.
here is what i have right now:
Code: Select all
<a href="mailto:?subject=<?php echo 'Thought of you when I read this';?>&body=Check out their profile when you get a chance and see if this post is something you want. http://www.mysite.com/profile.php?username=<?php echo $row_getPOSTER['username'];?>" title="tell a friend" class="boldFont">Tell a friend</a>
Thank you!