A very simple way to mail the URL of the parent page (in case the sender is
somewhere else on the site) to another is:
<form id="eMailer" name="eMailer" action="">
E-Mail this page as link Enter recipient's e-mail:<br />
<input type="text" id="address" name="address" size="30" />
<input type="button" value="Send" style="cursor:hand"
onclick="mailThisUrl()" />
</form>
with this JS:
function mailThisUrl()
{
var subj = "I thought this might interest you..."
var text = "Here is an interesting Website: "
var thispage = parent.location.href
var content = "mailto:"
+ document.forms['eMailer'].elements['address'].value
+ "?subject=" + subj
+ "&body=" + text + "%0d%0a"
+ parent.document.title
+ " (" + thispage + ")"
window.location = content
}
The form could be expanded to include the subject and the text
e.g. add <input type="text" id="subj" name="subj" size="30" /> to the form
and in the JS, change subj to
document.forms['eMailer'].elements['subj'].value
Ashraf,
Is this what you looking for ?
Sent To Friend: Not possible when using the FP Form Handler which can
only send to an email address that has been hard coded into the form.
Newsletter Subscription: Depends on what you want to happen with the
data.