ASPired2Refer is an ASP application that allows a user to refer a page or product to a friend. The process for ASPired2Refer works like this:

Original Web Page

User clicks on Refer Link

User enters data

ASPired2Refer send the e-mail

Original
Web Page

The user is returned to the original web page.

File Set Up

In your files that you want to include a refer link, insert a link to the refer form file

<a href="refer.asp?PRODUCT=ICON">Refer</a>

The section of the code above after the "?" can include any information you want to send in the refer e-mail. Examples of this include PRODUCT IDS, ARTICLE NUMBERS, and SONG NAME. However, whatever you add to this section, you should also add the information to the refer form and the refer e-mail.

The Refer Form File
Refer.asp

The refer form file contains a simple form that gathers the e-mail address to send the information. This form is very flexible in as much as you can add, change or delete everything but the Recipient's E-Mail address. The form needs to link to sendRefer.asp when the form is submitted.

<form action="sendRefer.asp" method="post" name="sendRef" onsubmit="return validate_form(this);">

The Send E-Mail File
sendRefer.asp

The file sendRefer.asp includes the functionality to e-mail the refer data to the recipient. This e-mailer can use one of several different e-mail components,

<%
Dim myline, d, strFrom, strTo, strSubject

strFrom = "TheSupportGuy@TheNetGuys.us"
strTo = Request("TO_EMAIL")
strSubject = "ASPired2Refer REFERENCE - " & Request("TO_NAME")

MyBody = "........." & vbCrLf & vbCrLf

call InitMail("CDONTS")
call SendMail("CDONTS", strTo, strFrom, strSubject, MyBody, 0)
call DeinitMail("CDONTS")
%>

Be sure to change the strFrom and strSubject. Finally, the message you send in the e-mail is up to you to write. The ASPired2Refer package contains a sample message. However, you will want to change it to reflect the message you want to present.

The E-Mail Functions
email_inc.asp

For more information about the e-mail functionality, see the Manual.