<html>
<head>
<LINK href="mystyle.css" type="text/css" rel="stylesheet">
</head>
<body>
<p class="largeHeader">Email Confirmation</p>
<hr class="topHr">
<%
YourName = Request.Form("YourName")
FriendName = Request.Form("FriendName")
EMailAddress = Request.Form("FriendEmail")
myURL = Request.Form("myURL")
Comments = Request.Form("Comments")
On Error Resume Next
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
If Err > 0 Then
Response.Clear
Response.Redirect Application("Server") & "/Err.asp"
End If
Mailer.FromName = application("FromName")
Mailer.FromAddress = application("FromAddress")
Mailer.RemoteHost = application("SMTP")
Mailer.AddRecipient FriendName, EMailAddress
Mailer.Subject = YourName & " has found an opportunity for you!"
Mailer.ContentType = "Text/HTML"
myBody = "<HTML>"
myBody = myBody & "<body>"
myBody = myBody & "<table>"
myBody = myBody & "<tr><td><font face='verdana' size='2'>"
myBody = myBody & "Dear <font color='darkblue'>" & FriendName
myBody = myBody & "</font></td></tr>"
myBody = myBody & "<tr><td> </td></tr>"
myBody = myBody & "<tr><td><font face='verdana' size='2'>Your friend <font color='darkblue'>" & YourName & "</font> has found an opportunity for you.</td></tr>"
myBody = myBody & "<tr><td colspan='2'><font face='verdana' size='2'><b><a href=" & myURL & ">Click here</a> to see the opportunity.</b></td></tr>"
myBody = myBody & "<tr><td colspan='2'> </td></tr><tr>"
If (Comments <> "") Then
myBody = myBody & "<tr><td colspan='2'><font face='verdana' size='2'>Additional Comments:</font></td></tr>"
myBody = myBody & "<tr><td colspan='2'><font face='verdana' size='2'>" & Comments & "</font></td></tr>"
End If
myBody = myBody & "</table></body></html>"
Mailer.BodyText = myBody
If Mailer.SendMail Then
Response.Write "<font class='bodyText'>You have successfully sent this job description.</font>"
Else
Response.Write "<font class='errorMessage'>Please check the e-mail address that you have typed - unable to send to this address.</font>"
End If
'If you are receiving errors use Mailer.Reponse to view the error code
'Most common problem is an SMTP setting error.
%>
</body>
</html>