• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

"CDONTS.Newmail" how does it send mail?

r6ashih

Senior member
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
 
i find that if i delete everything after the password the page will work and enter my profile into the db, but it wont send the email.
 
Back
Top