syntax error in vbscipt

Hello.

I am getting the following error from the below listed vbscript.

Microsoft VBScript compilation error '800a03ea'

Syntax error

/ccrf.asp, line 13

& "<html>" & _
^

Any ideas?

<% If "" & Request("EmailAddress") <> "" Then
    Set oMailer = Server.CreateObject("Persits.MailSender")
    oMailer.Host = "mail.xyz.com" 'specify valid SMTP host
    oMailer.From = Request("EmailAddress") 'specify senders address
    oMailer.FromName = Request("Name") 'specify senders name
    oMailer.AddAddress "sales@xyz.com"  
    oMailer.AddCC "techserv@xyz.com"
    oMailer.AddCustomHeader "Return-Receipt-To: <techserv@xyz.com>"
    oMailer.AddCustomHeader "Disposition-Notification-To: <techserv@xyz.com>"  
    oMailer.Subject = "Automatic Credit Card Request Form"
    'Build message body
         strBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">" & _
               & "<html>" & _
               & "<head>" & _
          & "<title>" & "Automatic Credit Card Request Form" & "</title>" & "<BR>" _
               & "<meta http-equiv=Content-Type content=""text/html; charset=iso-8859-1"">" & _
          & "</head>" & _
          & "<body bgcolor=""#FFFF99"">" & _
          & "<h2>" & "Automatic Credit Card Request Form" & "</h2>" & _
          & " <p>" & _
        & "IP Address: " & Request.ServerVariables("REMOTE_HOST") & "<BR>" _
        & "Account Number: " & Request("AccountNumber") & "<BR>" _
        & "Card Type: " & Request("CardType") & "<BR>" _
        & "Card Number: " & Request("CreditCardNumber") & "<BR>" _
        & "ExpirationDate: " & Request("ExpirationDate") & "<BR>" _
        & "V Code: " & Request("VCode") & "<BR>" _
        & "Message: " & Request("Message") & "<BR>" _
             & "</body>" & "<BR>" _
             & "</html>" & "<BR>"

    oMailer.Body = strBody ' assign string to Mail.Body
    oMailer.IsHTML = true
    On Error Resume Next
    Call oMailer.Send()
    Set oMailer = Nothing
    Response.Redirect("thankyou.htm")
    If Err <> 0 Then
      Response.Write "Error encountered: " & Err.Description
    End If
      Else %>
 <script language="JavaScript" type="text/javascript">javascript: window.history.back(-1)</script>
<% End IF %>
TrueBlueAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NeoTeqCommented:
When using the _, you need to follow the regular syntax. Your code is this:

  strBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">" & _
             & "<html>" & _
             & "<head>" & ...etc...

Which looks like this:

  strBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">" &  & "<html>" & & "<head>" & ...etc...

So this works:

  strBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">" & _
             "<html>" & _
             "<head>" & ...etc...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Zamba1Commented:
Just remove the ampersands (&) and the beginning of the line, since it is continued from the previous line and you would have two ampersands otherwise, which is not allowed.
NeoTeqCommented:
That's what I said...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.