Applaud Recruitment - Jobs Well done
<% //-- process request for e-mail dim msg, content if Request.QueryString("action") = "PROCESS" Then if Replace(Request.Form("email"), "@", "") = Request.Form("email") Or Replace(Request.Form("email"), ".", "") = Request.Form("email") Then msg = "

The e-mail address is not valid.

" end if if msg = "" then content = "You have been sent the following link by your friend " & Request.Form("myName") & "\n\n" & Request.Form("pageLink") title = "Link of interest from " & Request.Form("myName") dim objMail,strBody,cdoConfig,sch sch = "http://schemas.microsoft.com/cdo/configuration/" Set ObjMail = Server.CreateObject("cdo.message") Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "sendusing") = 2 ' cdoSendUsingPort .Item(sch & "smtpserver") = "127.0.0.1" .update End With ObjMail.TextBody = content ObjMail.Subject = title ObjMail.From = "info@applaudrecruitment.co.uk" ObjMail.To = Request.Form("email") set ObjMail.Configuration = cdoConfig objMail.send %>

E-mail Confirmation

Your e-mail link has been sent.














<% end if end if if Request.QueryString("action") <> "PROCESS" Or msg <> "" then %>

Jobs

E-mail Friend

<%= msg %>

Enter the following details to send the link of the page to your friend:

E-mail Form

My Name:
Page Link
Friend's E-mail:

<% end if %>