Print Page | Close Window

CDOSYS email probs causing Server Errors?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=18782
Printed Date: 12 April 2026 at 8:57pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CDOSYS email probs causing Server Errors?
Posted By: JVRudnick
Subject: CDOSYS email probs causing Server Errors?
Date Posted: 18 March 2006 at 9:57pm
Help here lads please...
 
when I try to add a post, I get this error...
 
error '8004020f'

/functions/functions_send_mail.asp, line 137

I get the same error trying to email too....
 
How can I fix this please...I can't be the ONLY one here whos run into this???
 
Angry
 
Jim


-------------

http://www.thebeatlesforum.com -
thebeatlesforum.com
Love me Do!



Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 March 2006 at 11:01am
This means that the email settings you setup in the admin area are incorrect.

Check with your hosting company as to the correct settings and then update the email settings in the admin area.


Posted By: JVRudnick
Date Posted: 20 March 2006 at 2:25pm
while I'm sure others might accept this answer, fraid I can't.
 
my email is PROPERLY setup on the server. I can send out a mass email to anyone and use the email a member functionality within the forums as per normal....ie my CDOSYS works fine!!!!
 
yet STILL, when i post, or anyone posts a new message, you get that same error message...using the Back button shows you tho that your message WAS recorded as you can see it at the bottom of that thread.
 
so....anyone else here help with what might be a very unique problem?
 
Jim


-------------

http://www.thebeatlesforum.com -
thebeatlesforum.com
Love me Do!


Posted By: WebWiz-Bruce
Date Posted: 20 March 2006 at 2:48pm
Calm down JVRudnick, after 5 years of witting a supporting this software the answer I have given you is correct, although a bit short, but I do have allot of support question to go through, and in 99% of cases what I posted will fix the issue.

This is 100% an email issue relating to the CDOSYS email component, as when you post your message email notifications are sent out to members who subscribe to the topic and/or forum.

The following page may give a more specific reason to your issue:-

http://www.aspfaq.com/show.asp?id=2305 - http://www.aspfaq.com/show.asp?id=2305

It could also be an issue with a malformed email address in the database, but I would first double check all your email settings are setup correctly.


Posted By: JVRudnick
Date Posted: 20 March 2006 at 3:21pm
borg..
 
this server (and I'm the admin btw, it's a ded server) has more than 50 domains on it. many of them, use our own ASP email engine to send out email. my own CDOSYS scripting is pretty simple, but it's somewhat more complex, as we don't use the MS SMTP at all, instead we use MailEnablePRO as the SMTP.
 
that said, your OWN code, to send out the emails is where the failure happens. this can be found in the CDOSYS routine in functions_send_mail.asp. somewhere in that snippet, the failure occurs...
===================================================
'CDOSYS mail component
  Case "CDOSYS"
   'Dimension variables
   Dim objCDOSYSCon
   'Create the e-mail server object
   Set objCDOSYSMail = Server.CreateObject("CDO.Message")
       Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
       'Set and update fields properties
       With objCDOSYSCon
           'Out going SMTP server
           .Fields(" http://schemas.microsoft.com/cdo/configuration/smtpserver - http://schemas.microsoft.com/cdo/configuration/smtpserver ") = strOutgoingMailServer
           'SMTP port
           .Fields(" http://schemas.microsoft.com/cdo/configuration/smtpserverport - http://schemas.microsoft.com/cdo/configuration/smtpserverport ")  = 25
           'CDO Port
           .Fields(" http://schemas.microsoft.com/cdo/configuration/sendusing - http://schemas.microsoft.com/cdo/configuration/sendusing ") = 2
           'Timeout
           .Fields(" http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout - http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout ") = 60
           .Fields.Update
          End With
    'Update the CDOSYS Configuration
    Set objCDOSYSMail.Configuration = objCDOSYSCon
   With objCDOSYSMail
    'Who the e-mail is from
    .From = strFromEmailName & " <" & strFromEmailAddress & ">"
    'Who the e-mail is sent to
    .To = strRecipientName & " <" & strRecipientEmailAddress & ">"
    'The subject of the e-mail
    .Subject = strSubject
    'Set the e-mail body format (HTMLBody=HTML TextBody=Plain)
    If blnHTML = True Then
      .HTMLBody = strEmailBodyMessage & strEmailBodyAppendMessage
    Else
     .TextBody = strEmailBodyMessage & strEmailBodyAppendMessage
    End If
    'Send the e-mail
    If NOT strOutgoingMailServer = "" Then .Send
   End with
   'Close the server mail object
   Set objCDOSYSMail = Nothing
===============================================
I've colored the line that the code failure occurs on....as you can see, the test is for this "strOutgoingMailServer" var from the green colored line above.
 
Somehow the prob tho of WHY that var is not capable of being tested, is beyond me. I've done many changes to your code and tried to sub in other vars that make CDOSYS run on this server for my own clients....and still NADA....
 
Can you help here? Your link to the aspfaq site is nice, but no where there does the problem of mine seem to be addressed...
 
???

Jim


-------------

http://www.thebeatlesforum.com -
thebeatlesforum.com
Love me Do!


Posted By: WebWiz-Bruce
Date Posted: 20 March 2006 at 3:37pm
I use MailEnablePRO myself, so know that Web Wiz Forums will run with it.

Version 7.97 does support using a 'localhost' mail sever, and version 8 also supports authentication.

If you are not running the latest version then try installing 7.97 and using a 'localhost' email server to see if that solves the issue.

Also, if you can wait until version 8 RC1 is released tomorrow, that also has the CDOSYS mail function re-written and it may also solve your problem.

The line that the error occurs on is the line that sends the email, but this does not mean the error is on that line, instead the error could be with any part of the CDOSYS setup.




Posted By: JVRudnick
Date Posted: 20 March 2006 at 3:42pm
um...never "upgraded" one of these forums before...is there an URL that explains how to do that? plus, what about the "changes" that I've made to the various colors, cols etc. Sorry, but never done this before....
 
???

Jim


-------------

http://www.thebeatlesforum.com -
thebeatlesforum.com
Love me Do!


Posted By: WebWiz-Bruce
Date Posted: 20 March 2006 at 3:53pm
To upgrade between 7.x versions just replace the ASP files with the ones from the new version, backup your database first just incase you accidentally overwrite it.

There is a version history file that lists the changed files, so you should be able to check if your modified files have been changed.

Upgrading to version 8 will be much the same process, but there will also be an upgrade tool for upgrading the database to the new version 8 database.

Upgrades are free and for security reasons you should always make sure you are using the latest version.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net