Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 20th, 2004, 03:43 PM
Authorized User
Join Date: Sep 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Strange error

I have a signup page on my website. When the user hits SUBMIT, they get this error message:
error '8004020f'
/about/SignUp.asp, line 223

When I check the code, it is this line, but I get the email anyway. Any ideas?

Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = "SignUp@company.whatever"
objCDOSYSMail.To = emailTo
objCDOSYSMail.Subject = "Auto Response from company"
objCDOSYSMail.HTMLBody = BodyText
objCDOSYSMail.Send This is line 223
'Close the server mail object
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing

Old September 20th, 2004, 03:50 PM
Authorized User
Join Date: Sep 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

One thing I should point out is that this code isn't being executed now, it will be called at a later time from a different page when the user is entered into the database.

I should also mention that I'm NOT a programer, I'm a Network Engineer who had this very complex web site dumped on me and told to make it work or hit the road. Sucks, but that's life.

I'm behind it!

Old September 20th, 2004, 06:46 PM
Friend of Wrox
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

Not a very detailed error. Have you turned off "Show Friendly HTTP Errors" in your browser?
Has this code ever sent mail?
check your variables are what they should be, EHG 'emailTo'

Follow the steps in this link:

This line looks dodgy to me:
Set objCDOSYSMail.Configuration = objCDOSYSCon
I would replace it with:
set objCDOSYSMail = server.createObject("CDONTS.Newmail")

Wind is your friend
Old September 21st, 2004, 07:55 AM
Authorized User
Join Date: Sep 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

I have turned off "Show friendly HTTP errors" when I got this project.

CDONTS doesn't work on a W2K3 server (or so I've been told) and everyplace I've replaced non-working CDONTS code with CDOSYS code it's worked fine.

I'll look into the emailTo variable.


Similar Threads
Thread Thread Starter Forum Replies Last Post
strange error Iguchi Visual Studio 2008 1 April 11th, 2008 06:21 AM
An Strange Error alirezaaali Classic ASP Professional 1 August 16th, 2007 10:03 AM
Strange ERROR (?) myself Classic ASP Basics 16 June 22nd, 2006 06:39 AM
Strange Error !!! NinaWilliam ASP.NET 1.0 and 1.1 Basics 2 May 21st, 2006 01:34 AM
strange error dynamic_iiita Beginning PHP 0 May 22nd, 2005 06:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.