I have an asp page where users fill out info when they sign up. then it emails the login and password to the new user.
the problem is im getting an error on the obj.send line
Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/SignUpSubmit.asp, line 132
i checked online andmy syntax is correct. could it be something else?
here ismy code:
Set objMail = CreateObject("CDONTS.Newmail")
objMail.From = "info@fds.com"
objMail.To = userEmail
objMail.Subject = "Welcome to blah!"
objMail.Body =
"Thanks for visiting www.test.com! We are pleased to have you as a " &_
"member. Here is the membership information that you requested." & VBCr & VBCr &_
"Email address: " & userEmail & VBCr &_
"Password: " & userPassword & VBCr & VBCr &_
"The next step is for you to return to our site to confirm that you received " &_
"our email. To confirm your receipt of this email and visit test's web " &_
"community, please visit the following URL:" & VBCr & VBCr &_
"http://www.test.com" & VBCr & VBCr &_
"Most email programs will simply let you click on the above address, and you " &_
"will automatically visit the URL. If this isn't so, then simply visit " &_
"http://www.test.com and log in using your member name (your email " &_
"address) and password listed above." & VBCr & VBCr &_
"We look forward to having you as a part of our community!" & VBCr & VBCr &_
"Sincerely," & VBCr &_
"The tests Team" & VBCr & VBCr &_
"P.S. If you have received this email in error, please contact us " &_
"at support@test.com. We apologize for the inconvenience. "
objMail.Send
Set objMail = Nothing
the problem is im getting an error on the obj.send line
Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/SignUpSubmit.asp, line 132
i checked online andmy syntax is correct. could it be something else?
here ismy code:
Set objMail = CreateObject("CDONTS.Newmail")
objMail.From = "info@fds.com"
objMail.To = userEmail
objMail.Subject = "Welcome to blah!"
objMail.Body =
"Thanks for visiting www.test.com! We are pleased to have you as a " &_
"member. Here is the membership information that you requested." & VBCr & VBCr &_
"Email address: " & userEmail & VBCr &_
"Password: " & userPassword & VBCr & VBCr &_
"The next step is for you to return to our site to confirm that you received " &_
"our email. To confirm your receipt of this email and visit test's web " &_
"community, please visit the following URL:" & VBCr & VBCr &_
"http://www.test.com" & VBCr & VBCr &_
"Most email programs will simply let you click on the above address, and you " &_
"will automatically visit the URL. If this isn't so, then simply visit " &_
"http://www.test.com and log in using your member name (your email " &_
"address) and password listed above." & VBCr & VBCr &_
"We look forward to having you as a part of our community!" & VBCr & VBCr &_
"Sincerely," & VBCr &_
"The tests Team" & VBCr & VBCr &_
"P.S. If you have received this email in error, please contact us " &_
"at support@test.com. We apologize for the inconvenience. "
objMail.Send
Set objMail = Nothing