|
At CommerceStreet.com, your web site
visitors can simply:
- click on a hyperlink or graphic,
- enter their own and a friend's e-mail
address, and
- click "Send"

Our "Send To A Friend"
program does the rest, e-mailing the friend a link to your web site. Your visitors can
even include a message that gets sent with the link.
There are three different ways to implement CommerceStreet.com's "Send to a
Friend" program.
- The easiest way is to simply hyperlink
to the program. You can hyperlink a graphic, hyperlink text, or both, as above. Hyperlink
to the program at
/cgi-sys/2aFriend.asp and our program does the rest.
- It determines the page you hyperlinked from,
- brings up a "Send to a Friend" input form,
- e-mails the link, and
- returns your visitor to the page they left.
It's as easy as this: Send to a Friend
You
can incorporate the "Send to a Friend" input form into a page on your web
site so you can customize the page to match your web site.
Simply name your page with an ".asp" extension, and insert this HTML where you
want the form:
<!-- include virtual="/cgi-sys/2aFriend.inc"-->
A full functional Send to a Friend input form will appear in your web page.
You can create your own
Send to a Friend form and post it to the
/cgi-bin/SendTo.asp form handler.
Two form fields are required, "Sender" and "SendTo".
Sender is
the e-mail address of the person sending the link and
SendTo is
the e-mail address of the person receiving the link.
Without both of these
fields present and filled in, the form handler will return an error message.
The following fields are
optional. They can be set with hidden fields, filled in (or left blank) by the respondent,
or disregarded completely. Optional field names and descriptions are:
Body -
the body of the e-mail message, normally comes from a comment field on the form.
Subject -
the subject line of the e-mail message can be set with a hidden field or input buy the
sender. If it is blank and there is a body message, the subject will take the first 24
characters of the body message.
ReferURL
- This is the URL of the page you are referring. It is not required, meaning you can use
this form handler for other purposes. The following hidden field on an asp page will fill
in this field with the referring URL automatically:
<input type="hidden" name="ReferURL" value="<%
=Request.ServerVariables("HTTP_REFERER") %>">
NextURL -
This is the URL of the page the sender is sent to after submitting the form. If it is not
provided, the sender is left on a blank page. Use the same code as the ReferURL to send
your user back to the page they left.
BCC -
This is an e-mail address for a blind carbon copy of the message sent. It would normally
be supplied with a hidden field to monitor Send To activity and messages.
Here is
example html code for a custom 2aFriend.asp page.
1. Name
the page with a .asp extension (instead of .html)
2.
Copy the code from this page to a text editor such as notepad to convert
if from the html format on this page to text format.
3.
Paste the text into the html of your web page.
4.
Customize your web page was desired.
<!-- Start
2aFriend.asp code -->
<form
method="POST"
action="/cgi-sys/SendTo.asp">
<input type="hidden"
name="NextURL"
value="<% =Request.ServerVariables("HTTP_REFERER")
%>">
<input type="hidden"
name="ReferURL"
value="<% =Request.ServerVariables("HTTP_REFERER")
%>">
<p>E-MAIL
A LINK TO: <%=Request.ServerVariables("HTTP_REFERER")%></p>
<p>Your
Name:
<input type="text" name="SenderName"
size="20"><br>
<p>Your E-Mail Address (required):
<input type="text" name="Sender"
size="20"></p>
<p>Send
to E-Mail Address (required):
<input type="text" name="SendTo"
size="20"></p>
<p>Comments:
(will be included in the e-mail with the link)<br>
<textarea rows="4" name="Body" cols="36"></textarea></p>
<input type="submit"
value="Send" name="Send">
</form>
<!-- End
2aFriend.asp code -->
|