I have the following email script that I want to include a link in the body. Here is my script and the current error I am getting. Can someone tell me how to change the bodystring area
if Request.Form("FFSubmitted"
= "yes" then
FormFields = ""
If FormFields <> "" Then
arrFormFields = split(FormFields,"~"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
End If
Set objCDO = Server.CreateObject("CDONTS.NewMail"
objCDO.From = "timesheet@am1st.com"
objCDO.To = "sthompson@am1st.com"
objCDO.Cc = ""
objCDO.Bcc = ""
objCDO.Subject = "Please Approve this timesheet"
BodyString = "The following user " & ((rs2.Fields.Item("firstname"
.Value) & " " & (rs2.Fields.Item("lastname"
.Value)) & " has submited his information for the health drawnings" & <a href="maintain.asp">approve there TimeSheet</a>"
If FormFields <> "" Then
For Each item In arrFormFields
BodyString = BodyString & item & ": " & Request.Form(item) & chr(13)
Next
End If
objCDO.Body = BodyString
objCDO.BodyFormat = 1
objCDO.MailFormat = 1
objCDO.Send
Set objCDO = Nothing
RedirectURL = ""
If RedirectURL <> "" then
If Request.QueryString <> "" Then
response.redirect(RedirectURL & "?" & Request.QueryString)
else
response.redirect(RedirectURL)
end If
end if
end if
%>
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/am1st/Mystuff/timeemail.asp, line 80, column 181
BodyString = "The following user " & ((rs2.Fields.Item("firstname"
.Value) & " " & (rs2.Fields.Item("lastname"
.Value)) & " has submited his information for the health drawnings" & <a href="maintain.asp">approve there TimeSheet</a>"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
if Request.Form("FFSubmitted"
FormFields = ""
If FormFields <> "" Then
arrFormFields = split(FormFields,"~"
End If
Set objCDO = Server.CreateObject("CDONTS.NewMail"
objCDO.From = "timesheet@am1st.com"
objCDO.To = "sthompson@am1st.com"
objCDO.Cc = ""
objCDO.Bcc = ""
objCDO.Subject = "Please Approve this timesheet"
BodyString = "The following user " & ((rs2.Fields.Item("firstname"
If FormFields <> "" Then
For Each item In arrFormFields
BodyString = BodyString & item & ": " & Request.Form(item) & chr(13)
Next
End If
objCDO.Body = BodyString
objCDO.BodyFormat = 1
objCDO.MailFormat = 1
objCDO.Send
Set objCDO = Nothing
RedirectURL = ""
If RedirectURL <> "" then
If Request.QueryString <> "" Then
response.redirect(RedirectURL & "?" & Request.QueryString)
else
response.redirect(RedirectURL)
end If
end if
end if
%>
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/am1st/Mystuff/timeemail.asp, line 80, column 181
BodyString = "The following user " & ((rs2.Fields.Item("firstname"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^